RFR: 8297530: java.lang.IllegalArgumentException: Negative length on strings concatenation [v2]

Claes Redestad redestad at openjdk.org
Thu Nov 24 15:04:49 UTC 2022


On Thu, 24 Nov 2022 14:14:56 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Require 64-bit arch to avoid (most) hypothetical false positives
>
> test/jdk/java/lang/String/concat/ImplicitStringConcatOOME.java line 36:
> 
>> 34:  * @run main/othervm -Xverify:all -Xmx4g ImplicitStringConcatOOME
>> 35:  *
>> 36:  * @compile ImplicitStringConcatOOME.java
> 
> I don't think you need the @compile tags but you might need `@requires sun.arch.data.model == "64"` so that the test only runs on 64-bit systems.

Seems to work without yes. Started with a copy of a similar test that used the `@compile` tags to control different compilation modes. Testing each ISC compilation mode seemed excessive for this sanity test.

-------------

PR: https://git.openjdk.org/jdk/pull/11354


More information about the core-libs-dev mailing list