[lworld] spurious javac error for 'this' expression

XMLWordPrintable

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

      javac generates the same error message twice for this code:

      value class C {
          int i;
          C() {
              m(this);
              i = 0;
          }

          void m(C c) {}
      }

      although with a slightly different position:

      ValhallaTest1.java:4: error: value class instance should not be passed around before being fully initialized
              m(this);
                ^
      ValhallaTest1.java:4: error: value class instance should not be passed around before being fully initialized
              m(this);
               ^
      2 errors

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

              Created:
              Updated:
              Resolved: