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

parameter_index for type annotation not updated after outer.this added

    XMLWordPrintable

    Details

      Backports

        Description

        For this Class:

        public class A {
            public A(@X A.@Y B jjj) { }

            class B {
                public B(@X A. @Y B lll) { }
            }
        }

        This method is generated:

          public A$B(A, A$B);
            descriptor: (LA;LA$B;)V
            flags: ACC_PUBLIC
            Code:

        ...

            RuntimeVisibleTypeAnnotations:
              0: #14(): METHOD_FORMAL_PARAMETER, param_index=0, location=[INNER_TYPE]
              1: #15(): METHOD_FORMAL_PARAMETER, param_index=0


        param_index=0 is wrong since outer.this A is now param 0 and param "lll" is now param 1.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                emc Eric Mccorkle
                Reporter:
                jfranck Joel Borggrén-Franck (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: