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

publicLookup fails to find public static method in same class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 8, 11, 12, 13
    • core-libs
    • None

      Under certain circumstances, publicLookup-provided Lookup objects fail to link a public static method in the same class where the Lookup was requested.

      This was reported as a JRuby bug here: https://github.com/jruby/jruby/issues/7120

      A fix was found by our users: switch to using the non-public lookup() to request the Lookup object.

      The fix indicates to us that this is a bug in JDK, but at least two comments in the issue above indicate that it does not occur in Java 14 and higher. I could find no prior reports of this issue, so it may have been incidentally fixed by other changes. We would like to understand the nature of the fix and request the fix be backported, so we can tell users what causes it and how to work around it on older versions of JRuby.

            rpallath Rajendrakumar Pallath
            headius Charles Nutter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: