JDK-6935102 : Regtest closed/sun/misc/FloatingDecimal/ToString.java now failing.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-03-15
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b109Fixed
Related Reports
Relates :  
Description
This started failing sometime between b72 and b76.  The /java/re JDK's are missing, so I can't pinpoint it any further.

TEST: closed/sun/misc/FloatingDecimal/ToString.java
JDK under test: (/java/re/jdk/7/promoted/all/b76/binaries/solaris-sparc)
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b76)
Java HotSpot(TM) Server VM (build 17.0-b05, mixed mode)

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0030 seconds
messages:
command: build ToString
reason: Named class compiled on demand
elapsed time (seconds): 0.0030

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 2 failure(s), first
REASON: Assumed action based on file name: run main ToString
TIME:   1.177 seconds
messages:
command: main ToString
reason: Assumed action based on file name: run main ToString
elapsed time (seconds): 1.177
STDOUT:
STDERR:
FAILED: float '': Expected '0.0010', got '0.001'
FAILED: double '': Expected '0.0010', got '0.001'
java.lang.RuntimeException: 2 failure(s), first
        at ToString.main(ToString.java:20)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:613)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:717)
Caused by: java.lang.RuntimeException: float '': Expected '0.0010', got '0.001'
        at ToString.setFirst(ToString.java:52)
        at ToString.fail(ToString.java:45)
        at ToString.test(ToString.java:31)
        at ToString.main(ToString.java:17)
        ... 6 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: 2 failure(s), first
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 2 failure(s), first

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 2 failure(s), first
--------------------------------------------------
Test results: failed: 1
Report written to JTreport/html/report.html

Comments
SUGGESTED FIX --- old/./ProblemList.txt Thu Aug 5 16:55:29 2010 +++ new/./ProblemList.txt Thu Aug 5 16:55:28 2010 @@ -160,7 +160,6 @@ closed/javax/sound/sampled/DataLine/LongFramePosition.java generic-all closed/javax/sound/sampled/DirectAudio/bug6372428.java generic-all closed/javax/sound/sampled/FileWriter/WaveBigEndian.java generic-all -closed/sun/misc/FloatingDecimal/ToString.java generic-all ############################################################################ --- old/sun/misc/FloatingDecimal/ToString.java Thu Aug 5 16:55:32 2010 +++ new/sun/misc/FloatingDecimal/ToString.java Thu Aug 5 16:55:31 2010 @@ -14,7 +14,7 @@ test("1.0"); test("0.1"); test("0.01"); - test("0.0010"); + test("0.001"); test("1.0E-4"); if (fail != 0) throw new RuntimeException(fail + " failure(s), first", first);
06-08-2010

EVALUATION I tried to get a better idea of which exact build introduced the error: this is what RE said: When I took over jdk7 it was not made clear on how many promotions should be kept. There are different requirement/agreements for each product. These have probably been deleted for disk space reasons, but they can be easily restored........
15-03-2010