Hello,
I've discovered an odd behaviour of OrientDB GraphEd 1.0rc9: double values equal to or greater than 10mln (10000000.0) are stored as String so when I load them from the graph and try to use as doubles I get a ClassCastException. A very simple test case that reproduce the error is available at
https://gist.github.com/2252681. It creates a Vertex with two properties: one stores a double primitive and a second one stores a double object. The failing assertions are in:
- line 71 - it throws a ClassCastException because the double primitive value is stored as String rather than a double;
- line 72 - it compare two double objects and throws a java.lang.AssertionError with this message: expected:<1.0E7> but was:<1.0E7d>
The problem raises with both local and remote graph databases. I'm using OrientDB on 64bit OSs (client = Windows 7, server = Windows Server 2008 R2).
Could this be a bug or something that can be fixed by tuning some config parameters on Orient?
TIA,
Salvatore