[lworld] javac allows super constructor invocations before all fields have been initialized

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: tools

      this code is being accepted by javac:

      value class V {
          int i;

          V() {
              super();
              i = 1;
          }
      }

      it should be rejected. Also, with value records, the implicit super call always ends up before the field stores. Reported by Tobias

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

              Created:
              Updated:
              Resolved: