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

javac, previous solution for JDK-8022186 was incorrect

    XMLWordPrintable

Details

    • b108
    • Verified

    Description

      An empty try statement should not get up to Gen. If the try statement has a finalizer, then only the finalizer should be generated. This should be caught at Lower.

      The only case where Gen should deal with a try with an empty body is in the face of a synchronized statement. In this case Gen itself, depending on the user code, can generate a try with an empty block, but the code generated in this case is correct.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: