Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8007718

Make static RegExp properties fully compatible to other engines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 8
    • None
    • core-libs
    • None

      JDK-8007619 has added support for non-standard RegExp constructor properties, but there are some compatibility issues:

       - Properties should be defined as constants but currently are handled via __noSuchProperty__ and thus easy to override
       - Not the whole set of properties is supported (leftContext, rightContext, multiline are missing)
       - Properties are handled though a hidden property in RegExp constructor which can be accessed and modified by scripts
       - Properties behaviour differs from Spidermonkey and V8 regarding default value, when they are set, etc.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: