-
Bug
-
Resolution: Fixed
-
P2
-
13
The test added by JDK-8210583 always fails:
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
at TestEncodingDecodingLength.main(TestEncodingDecodingLength.java:41)
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.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:835)
40: int size = Integer.MAX_VALUE - 2;
41: byte[] inputBytes = new byte[size];
Unclear whether this is platform/configuration specific as a standalone test on linux-x64 can execute the above okay.
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
at TestEncodingDecodingLength.main(TestEncodingDecodingLength.java:41)
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.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:835)
40: int size = Integer.MAX_VALUE - 2;
41: byte[] inputBytes = new byte[size];
Unclear whether this is platform/configuration specific as a standalone test on linux-x64 can execute the above okay.
- relates to
-
JDK-8210583 Base64.Encoder incorrectly throws NegativeArraySizeException
- Closed