[JAVA-1406] Error Reading JavascriptWithScope in JsonReader Created: 22/Aug/14  Updated: 01/Apr/16  Resolved: 18/Sep/14

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: 3.0.0
Fix Version/s: 3.0.0

Type: Bug Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Done Votes: 0
Labels: rc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The following code produces an error

 def c = '{"codeWithScope": {
    "$code": "int x = y",
    "$scope": {
      "y": 1
    }
  }
}'
 
new DocumentCodec().decode(new JsonReader(c), DecoderContext.builder().build())

Error: org.bson.json.JsonParseException: JSON reader was expecting a name but found '{'.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'guoyr', u'name': u'Robert Guo', u'email': u'robert.guo@10gen.com'}

Message: JAVA-1406: fix jsWithScope in JSONReader
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/759785274d19735b8dc85f73f849a7afe2c8230b

Comment by Githook User [ 12/Sep/14 ]

Author:

{u'username': u'guoyr', u'name': u'Robert Guo', u'email': u'robert.guo@10gen.com'}

Message: JAVA-1406: fix jsWithScope in JSONReader
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/759785274d19735b8dc85f73f849a7afe2c8230b

Generated at Thu Feb 08 08:54:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.