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

tools/pack200/TimeStamp.java fails with NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      generic
    • OS:
      generic

      Description

      Subsequent to the fix for JDK-8067801 the test fails with an NPE:

      java.lang.NullPointerException
      at java.base/java.io.FilterInputStream.<init>(FilterInputStream.java:63)
      at java.base/java.io.BufferedInputStream.<init>(BufferedInputStream.java:198)
      at java.base/com.sun.java.util.jar.pack.PackageReader$LimitedBuffer.<init>(PackageReader.java:126)
      at java.base/com.sun.java.util.jar.pack.PackageReader.<init>(PackageReader.java:67)
      at java.base/com.sun.java.util.jar.pack.UnpackerImpl$DoUnpack.unpackSegment(UnpackerImpl.java:205)
      at java.base/com.sun.java.util.jar.pack.UnpackerImpl$DoUnpack.run(UnpackerImpl.java:193)
      at java.base/com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:110)
      at java.base/com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:147)
      at Utils.unpack0(Utils.java:463)
      at Utils.unpackj(Utils.java:443)
      at TimeStamp.unpackJava(TimeStamp.java:123)
      at TimeStamp.main(TimeStamp.java:71)

      java/net/URLConnection/ContentHandlers/ContentHandlersTest.java fails with a similar exception:

      java.lang.RuntimeException: Exception in thread "main" java.lang.NullPointerException
      at java.base/java.io.FilterInputStream.<init>(FilterInputStream.java:63)
      at java.base/sun.net.www.content.text.PlainTextInputStream.&lt;init&gt;(PlainTextInputStream.java:45)
      at java.base/sun.net.www.content.text.plain.getContent(plain.java:43)
      at java.base/java.net.URLConnection.getContent(URLConnection.java:750)
      at java.base/java.net.URL.getContent(URL.java:1166)
      at Test.main(Test.java:64)

      at ContentHandlersTest.step4_BuiltIn(ContentHandlersTest.java:175)
      at ContentHandlersTest.main(ContentHandlersTest.java:68)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bpb Brian Burkhalter
              Reporter:
              bpb Brian Burkhalter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: