-
Bug
-
Resolution: Fixed
-
P4
-
9, 11, 17, 19, 20
-
b26
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8297983 | 17.0.6 | Victor Rudometov | P4 | Resolved | Fixed | b06 |
JDK-8298465 | 15.0.10 | Yuri Nesterenko | P4 | Resolved | Fixed | b04 |
JDK-8298531 | 13.0.14 | Yuri Nesterenko | P4 | Resolved | Fixed | b04 |
The issue happens during concatenation of relatively large strings (about a 1MB size). I would expect any other error, like OutOfMemoryError, but not a 'Negative length' given that the expression being evaluated only contains strings and '+' operators.
The exception:
java.lang.IllegalArgumentException: Negative length
at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1378)
at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:438)
at Test_38.method_int_int_287(Test_38.java:2215)
at Test_38.method_float_float_435(Test_38.java:2312)
at Test_38.mainTest(Test_38.java:2449)
at Test_38.main(Test_38.java:2464)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1591)
- backported by
-
JDK-8297983 java.lang.IllegalArgumentException: Negative length on strings concatenation
- Resolved
-
JDK-8298465 java.lang.IllegalArgumentException: Negative length on strings concatenation
- Resolved
-
JDK-8298531 java.lang.IllegalArgumentException: Negative length on strings concatenation
- Resolved
- relates to
-
JDK-8213035 Pack MethodHandleInlineStrategy coder and length into a long
- Resolved
- links to
-
Commit openjdk/jdk13u-dev/c270cfeb
-
Commit openjdk/jdk15u-dev/e9769825
-
Commit openjdk/jdk17u-dev/d5239368
-
Commit openjdk/jdk/87d1097d
-
Review openjdk/jdk13u-dev/441
-
Review openjdk/jdk15u-dev/314
-
Review openjdk/jdk17u-dev/940
-
Review openjdk/jdk19u/100
-
Review openjdk/jdk/11354