regression after JDK-8261006

XMLWordPrintable

    • b11
    • Verified

      After integration of JDK-8261006 the following started to fail on compilation

      ===== A.java =============================
      public class A extends B {
          A(int i) {}
          class IC extends B {
              class IIC extends S {
                  IIC(float f) {
                      IC.super.ref.super();
                  }
              }
          }
      }

      class B {
          B ref;
          class S { }
      }
      ==================================


      ./javac A.java
      A.java:6: error: cannot reference super before supertype constructor has been called
                      IC.super.ref.super();
                        ^
      1 error

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: