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

javac should fail early when emitting illegal signature attributes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9, 10, 11
    • Fix Version/s: 11
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15
    • Verification:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: