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

javac should fail early when emitting illegal signature attributes

XMLWordPrintable

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

        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.


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

                Created:
                Updated:
                Resolved: