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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.2
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      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;
          }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: