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

javac should fail early when emitting illegal signature attributes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 11
    • 8, 9, 10, 11
    • tools
    • b15
    • Verified

    Backports

      Description

        Code like this:

        class Outer<X> {
           class Inner { }

           void test(Outer<?> outer) {
              outer.new Inner() { };
           }
        }

        Makes javac generate bad signature attributes:

        class Outer$1 extends Outer<<captured wildcard>>.Inner {
          final Outer this$0;
          Outer$1(Outer, Outer);
        }

        Javac should fail when generating code that is guaranteed to fail at verify.


        Attachments

          Issue Links

            Activity

              People

                mcimadamore Maurizio Cimadamore
                mcimadamore Maurizio Cimadamore
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: