[lworld] javac is generating superfluous assert_unset_fields frame

XMLWordPrintable

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

      javac is generating a superfluous assert_strict_fields frame for code like:

      import jdk.internal.vm.annotation.Strict;

      class Test {
          @Strict
          int fs;
          @Strict
          int fsf;

          Test(boolean cond) {
              if (cond) {
                  fs = 3;
              } else {
                  fsf = 2;
              }
              fs = 5;
              fsf = 12;
              super();
          }
      }

      after the `if` statement ends both fs and fsf are not DA

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

              Created:
              Updated: