Export to GitHub

json-simple - issue #94

Long cast error, even if String used


Posted on Jan 5, 2014 by Swift Cat

Error: java.lang.Long cannot be cast to java.lang.Double Line: String XString = PLAYER.get("x").toString();

First i tried to directly cast the Double value, same error. The field "x" gets checked whether it exists and whether its null.

Comment #1

Posted on Jan 5, 2014 by Swift Cat

Fixed, seems to be a bug in Eclipse.

Comment #2

Posted on Jul 15, 2014 by Helpful Panda

(No comment was entered for this change.)

Status: Invalid

Labels:
Type-Defect Priority-Medium