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

    Details

    • Subcomponent:
    • Resolved In Build:
      b40
    • Verification:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: