Details
-
Bug
-
Resolution: Fixed
-
P2
-
9, 10, 11, 12
-
b27
-
x86_64
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8236327 | 15 | Robert Field | P2 | Resolved | Fixed | team |
JDK-8258891 | 13.0.6 | Ekaterina Vergizova | P2 | Resolved | Fixed | b04 |
JDK-8254621 | 11.0.11-oracle | Robert Field | P2 | Closed | Fixed | b01 |
JDK-8251147 | 11.0.9 | Robert Field | P2 | Resolved | Fixed | b03 |
Description
openjdk version "11-ea" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11-ea+26)
OpenJDK 64-Bit Server VM 18.9 (build 11-ea+26, mixed mode)
A DESCRIPTION OF THE PROBLEM :
When creating an extremely large LinkedList in JShell, a NullPointerException is thrown
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
launch jshell:
jshell -R-Xmx9G
run the command:
IntStream.rangeClosed(0, Integer.MAX_VALUE).mapToObj(i -> (byte) 0).collect(Collectors.toCollection(LinkedList::new))
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
either no exception occurs, or an OutOfMemoryError is reported
ACTUAL -
a NullPointerException occurs
Attachments
Issue Links
- backported by
-
JDK-8236327 JShell: NullPointerException in jdk.jshell.Eval.translateExceptionStack
- Resolved
-
JDK-8251147 JShell: NullPointerException in jdk.jshell.Eval.translateExceptionStack
- Resolved
-
JDK-8258891 JShell: NullPointerException in jdk.jshell.Eval.translateExceptionStack
- Resolved
-
JDK-8254621 JShell: NullPointerException in jdk.jshell.Eval.translateExceptionStack
- Closed
- duplicates
-
JDK-8229863 JShell throws NullPointerException while translating stack trace without source
- Closed
-
JDK-8229436 jshell needs to handle StackTraceElements with null filenames
- Resolved