allen501pc / jlibs

Automatically exported from code.google.com/p/jlibs
0 stars 0 forks source link

java.lang.NumberFormatException: For input string: "0.0" #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
java.lang.NumberFormatException: For input string: "0.0"
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
java.lang.Long.parseLong(Long.java:441)
java.lang.Long.parseLong(Long.java:483)
jlibs.xml.xsd.XSInstance$XSSampleVisitor$Range.randomNumber(XSInstance.java:589)
jlibs.xml.xsd.XSInstance$XSSampleVisitor.generateSampleValue(XSInstance.java:464
)
jlibs.xml.xsd.XSInstance$XSSampleVisitor.access$400(XSInstance.java:168)
jlibs.xml.xsd.XSInstance$XSSampleVisitor$2.preProcess(XSInstance.java:280)
jlibs.xml.xsd.XSInstance$XSSampleVisitor$2.preProcess(XSInstance.java:262)
jlibs.core.graph.WalkerUtil.walk(WalkerUtil.java:40)
jlibs.xml.xsd.XSInstance.generate(XSInstance.java:100)

Original issue reported on code.google.com by radek.an...@gmail.com on 8 Nov 2013 at 12:00

GoogleCodeExporter commented 9 years ago
My quick patch to fix this.

Original comment by radek.an...@gmail.com on 8 Nov 2013 at 12:43

Attachments:

GoogleCodeExporter commented 9 years ago
nice bug:

min/max facet values are of basetype as per spec.
so if basetype is real number, eventhough fractiondigits can zero, min/max 
facet values can have fraction part

fixed in r1767

Original comment by santhosh.tekuri@gmail.com on 8 Nov 2013 at 8:44