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

Try-with-resource implementation throws an NPE during Flow analysis

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      m09
    • Introduced In Version:
      7
    • Resolved In Build:
      b105
    • CPU:
      unknown
    • OS:
      generic
    • Verification:
      Verified

      Description

      The following program crashes javac:

      class Test {
          public void test() {
              try(Resource r = null) { }
          }

          interface Resource extends AutoCloseable {}
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: