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

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

XMLWordPrintable

    • m09
    • 7
    • b105
    • unknown
    • generic
    • Verified

      The following program crashes javac:

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

          interface Resource extends AutoCloseable {}
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: