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

DA/DU analysis vs break/continue vs finally that cannot complete normally

XMLWordPrintable

    • mantis
    • generic
    • solaris_8

      javac improperly rejects the following program.



      class Tnewflow {
          void f(int x) {
      final int i;
      L: {
      if (x==0) break L;
      try {
      i = 3;
      break L;
      } finally {
      return;
      }
      }
      i = 2;
          }
      }

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: