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

[lworld] javac is generating superfluous assert_unset_fields frame

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • 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

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

              Created:
              Updated: