JDK-8204288 : Matching the end of a string followed by an empty greedy regex and a word boundary fails
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8,10,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-06-04
  • Updated: 2020-02-21
  • Resolved: 2018-06-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 11 JDK 8 Other
11 b18Fixed 8u241Fixed openjdk8u232Fixed
Related Reports
Relates :  
Description
Backport of this Joni fix:

https://github.com/jruby/joni/commit/e97e5bf0bac9664d93fc13ac6c0d382e84cfab9c

More context:

https://github.com/k-takata/Onigmo/issues/96

Comments
Fix Request (OpenJDK 8u): Please approve this patch which got fixed in Oracle JDK 8u241 for OpenJDK 8u242 parity. The JDK 11 patch applies as-is and works as expected (post path changes). Testing: nashorn tests on x86_64. New regression test fails prior fix, passes after. Webrev I intend to push once approved: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8204288/01/webrev/
19-11-2019