[
https://issues.apache.org/jira/browse/DERBY-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701982#action_12701982
]
Bryan Pendleton commented on DERBY-2447:
----------------------------------------
Hi Knut, this is an interesting observation, and an interesting little snippet
of code.
What might I see when I run it? Am I doing it right:
-bash-2.05b$ javac Normalize.java
-bash-2.05b$ java -cp . Normalize
sum: 0.0
normalizeREAL(-0.0f): 0.0
I got these results with both of the following:
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
> ejbql and floattypes in
> org.apache.derbyTesting.functionTests.tests.lang.LangScripts intermittently
> fails with 'expected:<[0.0 ] > but was:<[-0.0] '
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2447
> URL: https://issues.apache.org/jira/browse/DERBY-2447
> Project: Derby
> Issue Type: Bug
> Components: Regression Test Failure
> Affects Versions: 10.3.1.4
> Environment: OS: Red Hat Enterprise Linux AS release 4 (Nahant Update
> 3) 64bits - Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 GNU/Linux
> JVM: Sun Microsystems Inc. 1.5.0_07-b03
> OS: Solaris 10 6/06 s10s_u2wos_09a SPARC 64bits - SunOS 5.10 Generic_118833-17
> JVM: Sun Microsystems Inc. - 1.5.0_07-b03
> Reporter: Ole Solberg
> Priority: Minor
> Attachments: Normalize.java
>
>
> Seen intermittently on Linux since 2007-02-27.
> Seen on Solaris 2007-03-12.
> <signature>
> ejbql(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)junit.framework.ComparisonFailure:
> Output at line 454 expected:<[0.0 ] > but was:<[-0.0] >
> at
> org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(CanonTestCase.java:100)
> at
> org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(ScriptTestCase.java:124)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:80)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> </signature>
> <signature>
> floattypes(org.apache.derbyTesting.functionTests.tests.lang.LangScripts)junit.framework.ComparisonFailure:
> Output at line 1823 expected:<[0.0 ] > but was:<[-0.0] >
> at
> org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(CanonTestCase.java:100)
> at
> org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(ScriptTestCase.java:124)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:80)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> </signature>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.