JDK-6876961 : (rb) test/java/util/ResourceBundle/Test4300693.java fails with -esa
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-08-28
  • Updated: 2011-05-25
  • Resolved: 2011-05-25
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 Other
7 b114Fixed OpenJDK6Resolved
Related Reports
Relates :  
Relates :  
Description
If you test  java/util/ResourceBundle/Test4300693.java with
-vmoption:-enablesystemassertions,
you get an assertion failure as follows (please fix):

jtreg -v:nopass,fail -vmoption:-enablesystemassertions -automatic
"-k:\!ignore" test/java/util/ResourceBundle/Test4300693.java
--------------------------------------------------
TEST: java/util/ResourceBundle/Test4300693.java

...

STDOUT:
STDERR:
java.lang.AssertionError
	at java.util.ResourceBundle.endLoading(ResourceBundle.java:1521)
	at java.util.ResourceBundle.findBundle(ResourceBundle.java:1397)
	at java.util.ResourceBundle.findBundle(ResourceBundle.java:1310)
	at java.util.ResourceBundle.findBundle(ResourceBundle.java:1310)
	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1252)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:733)
	at Test4300693.<clinit>(Test4300693.java:39)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:90)
	at java.lang.Thread.run(Thread.java:717)
STATUS:Failed.`main' threw exception: java.lang.AssertionError

TEST RESULT: Failed. Execution failed: `main' threw exception:
java.lang.AssertionError

Comments
EVALUATION This problem should have gone with the fix to 6915621 which removed begin/endLoading methods, which was throwing the exception.
28-09-2010

EVALUATION The assertion needs to handle recursive calls special.
28-08-2009