You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2000000000000000.0
2.0E15
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5
at com.dslplatform.json.NumberConverter.approximateDouble(NumberConverter.java:519)
at com.dslplatform.json.NumberConverter.parseDouble(NumberConverter.java:497)
at com.dslplatform.json.NumberConverter.deserializeDouble(NumberConverter.java:398)
...
I got this error on dsl-json-java8 v1.10.0. But it is also reproducible in the current 'master' branch.
It also fails for numbers 3E15, 4E15, 5E15, 6E15, 7E15.
Originally, it failed on deserializing number 2670986322885633.0
Tested on Java 8 and 23
The text was updated successfully, but these errors were encountered:
Hi. I have encountered
ArrayIndexOutOfBoundsException
when deserializing double values.Here is a code that reproduces the problem:
Here is the output:
I got this error on
dsl-json-java8
v1.10.0. But it is also reproducible in the current 'master' branch.It also fails for numbers
3E15
,4E15
,5E15
,6E15
,7E15
.Originally, it failed on deserializing number
2670986322885633.0
Tested on Java 8 and 23
The text was updated successfully, but these errors were encountered: