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

Add safety check to dynalink inner class lookup

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      master
    • CPU:
      generic
    • OS:
      generic

      Description

      The fix for JDK-8210943 assumes the classes returned by java.lang.Classes#getClasses() to be ordered by declaring class, going from subclass to superclass. While this is the case with the current implementation, this is not guaranteed by the API specification, so we should add additional checks to make sure we pick the right class if the method returns classes with the same name.

      http://mail.openjdk.java.net/pipermail/nashorn-dev/2018-December/007451.html

        Attachments

          Activity

            People

            • Assignee:
              hannesw Hannes Wallnoefer
              Reporter:
              hannesw Hannes Wallnoefer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: