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

Gracefully handle absence of Unsafe.defineAnonymousClass

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P1
    • None
    • None
    • core-libs
    • None

    Description

      With JDK 17, Unsafe.defineAnonymousClass is no more. Nashorn must handle its absence gracefully when --anonymous-classes option is set to "auto" (which is the default). It should still reject starting up if someone explicitly set the option to "true". The behavior when it's set to "false" is unchanged.

      Attachments

        Issue Links

          Activity

            People

              attila Attila Szegedi
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: