bad decoding of bson long numbers.
this bug happens on our remote ubuntu servers. i wasn't able to reproduce this on my desktop ubuntu in eclipse debugging mode.
is this related to some dependencies?machine 32/64bit configuration??
this doesn't happen with 2.5 and older.
byte[] bsonobj1 = BSON.encode(new BasicDBObject("test", -6155364211098656392l));
DBObject longdecode = (DBObject) JSON.parse(BSON.decode(bsonobj1).toString());
System.out.println(longdecode);
- duplicates
-
JAVA-521 JSON parser parses longs as ints
- Closed