Throwing an NPE for a null wrapped stream breaks the test as:
STDERR:
java.lang.Exception: PushbackInputStream failed to detect negative init size
at NegativeInitSize.main(NegativeInitSize.java:56)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:830)
STDERR:
java.lang.Exception: PushbackInputStream failed to detect negative init size
at NegativeInitSize.main(NegativeInitSize.java:56)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:830)
- relates to
-
JDK-8228392 Backout incorrect change done by JDK-8067801
-
- Resolved
-
-
JDK-8228338 tools/pack200/TimeStamp.java fails with NullPointerException
-
- Resolved
-
-
JDK-8067801 Enforce null check for underlying I/O streams
-
- Resolved
-
- links to