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

MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution

    XMLWordPrintable

Details

    • b40
    • Verified

    Backports

      Description

        The below piece of jasm code generates NoClassDefFoundError whereas it should generate NoSuchMethodError

        super public class TestMethodResolution
            version 52:0
        {

        public static Method "testMethod":"()V"
        {
            return;
        }

        public static Method "main":"([Ljava/lang/String;)V"
            stack 1 locals 1
        {
                  ldc MethodHandle REF_invokeStatic:
                          TestMethodResolution.testMethod:
                          "(LClassFoo;)V";

                  return;
        }

        }

        Attachments

          Issue Links

            Activity

              People

                vlivanov Vladimir Ivanov
                pgundarlahal Prashanthram Gundarlahally
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: