JDK-8141443 : jdk/test/java/util/regex/RegExTest.java fails: No match found
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-11-04
  • Updated: 2017-07-26
  • Resolved: 2015-11-05
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 9
9 b93Fixed
Related Reports
Relates :  
Description
...
Reluctant Repetition          : Passed
Multiline Dollar              : Passed
Dollar at End                 : Failed(2)
java.lang.IllegalStateException: No match found
	at java.util.regex.Matcher.group(Matcher.java:631)
	at java.util.regex.Matcher.group(Matcher.java:590)
	at RegExTest.check(RegExTest.java:190)
	at RegExTest.check(RegExTest.java:229)
	at RegExTest.caretBetweenTerminatorsTest(RegExTest.java:1247)
	at RegExTest.main(RegExTest.java:128)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:747)
Comments
verified by nightly testing
26-07-2017

C2's string concatenation optimization fails concatenating a constant Latin1 encoded string with a constant UTF16 encoded string because there is an implicit sign extension while converting from jbyte to jchar. Fix is out for review.
05-11-2015

I'm able to reproduce this and it seems to be related to CompactStrings. At least it does not reproduce with -XX:-CompactStrings. Also, -XX:-OptimizeStringConcat seems to fix it. Investigating...
04-11-2015

RULE "java/util/regex/RegExTest.java" Exception java.lang.IllegalStateException: No match found
04-11-2015