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

regression after JDK-8261006

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b11

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: