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

Add safety check to dynalink inner class lookup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 12
    • None
    • core-libs
    • b24
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: