db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3100) java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003, Vista)
Date Wed, 03 Oct 2007 19:37:50 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-3100:
--------------------------------------

    Attachment: parsedouble.diff

The attached patch replaces a call to Double.parseDouble() with NumberFormat.parse(). NumberFormat
uses the current locale when it parses the number and therefore also works in non-English
locales. I have successfully run TableFunctionTest with locale set to en_US and no_NO.ISO8859-1@nynorsk
with this patch.

> java.lang.NumberFormatException in test lang.TableFunctionTest on specific machines (Win2003,
Vista)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3100
>                 URL: https://issues.apache.org/jira/browse/DERBY-3100
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.0.0
>         Environment: from http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-575338.html:
vista and win2003
>            Reporter: Myrna van Lunteren
>            Assignee: Knut Anders Hatlen
>         Attachments: parsedouble.diff
>
>
> This failure is gleaned from the nightly tests posted to the list. The test started failing
on September 13.
> The stack is:
> 1) testTableFunctions(org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest)java.lang.NumberFormatException:
For input string: "13,00"
> 	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> 	at java.lang.Double.parseDouble(Double.java:510)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.readDoubleTag(TableFunctionTest.java:1647)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.vtiCosting(TableFunctionTest.java:1124)
> 	at org.apache.derbyTesting.functionTests.tests.lang.TableFunctionTest.testTableFunctions(TableFunctionTest.java:797)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message