JDK-6636583 : java/util/regex/RegTest.java fails in 6u4p with -XX:+AggressiveOpts flag
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u4p
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2007-12-03
  • Updated: 2010-04-03
  • Resolved: 2007-12-04
Related Reports
Duplicate :  
Description
java/util/regex/RegTest.java
fails in 6u4p on solaris-sparc with
-server -XX:+AggressiveOpts flags.

The test doesn't fail without -XX:+AggressiveOpts.

The test doesn't fail with latest jdk6u4b09 and latest jdk7b23

Error log:
SupplementaryTestCases.txt    : Failed(1)
Boyer Moore (ASCII)           : Passed
Boyer Moore (Supplementary)   : Passed
Slice                         : Passed
java.lang.IllegalStateException: No match found
        at java.util.regex.Matcher.group(Matcher.java:468)
        at java.util.regex.Matcher.group(Matcher.java:428)
        at RegTest.doSlice(RegTest.java:3101)
        at RegTest.slice(RegTest.java:3043)
        at RegTest.main(RegTest.java:41)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:78)
        at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.IllegalStateException: No match found
JavaTest Message: shutting down test