JDK-8081608 : $ at the end of replace string causes index out of range error
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2015-06-01
  • Updated: 2015-06-01
  • Resolved: 2015-06-01
Related Reports
Duplicate :  
Description
jjs> "string".replace("i", "$");
java.lang.StringIndexOutOfBoundsException: String index out of range: 1