RFR: 8236939: [TESTBUG] Incorrect initialization in java/foreign/TestArrays.java
Leonid Mesnik
leonid.mesnik at oracle.com
Mon Jan 13 07:45:56 UTC 2020
Thanks for letting me know. I'll just close bug.
Leonid
> On Jan 12, 2020, at 11:39 PM, Nick Gasson <nick.gasson at arm.com> wrote:
>
> Hi Leonid,
>
> On 11/01/2020 02:06, Leonid Mesnik wrote:
>> --- a/test/jdk/java/foreign/TestArrays.java Wed Jan 01 03:08:45 2020 +0100
>> +++ b/test/jdk/java/foreign/TestArrays.java Fri Jan 10 09:51:51 2020 -0800
>> @@ -76,8 +76,8 @@
>> static VarHandle shortHandle = shorts.varHandle(short.class, PathElement.sequenceElement());
>> static VarHandle intHandle = ints.varHandle(int.class, PathElement.sequenceElement());
>> static VarHandle floatHandle = floats.varHandle(float.class, PathElement.sequenceElement());
>> - static VarHandle longHandle = doubles.varHandle(long.class, PathElement.sequenceElement());
>> - static VarHandle doubleHandle = longs.varHandle(double.class, PathElement.sequenceElement());
>> + static VarHandle longHandle = longs.varHandle(long.class, PathElement.sequenceElement());
>> + static VarHandle doubleHandle = doubles.varHandle(double.class, PathElement.sequenceElement());
>> static void initBytes(MemoryAddress base, SequenceLayout seq, BiConsumer<MemoryAddress, Long> handleSetter) {
>> for (long i = 0; i < seq.elementCount().getAsLong() ; i++) {
>
> There's also an identical mix-up in TestByteBuffer.java. The patch for 8236634 fixes this too along with some other things:
>
> http://hg.openjdk.java.net/jdk/jdk14/rev/e70d8459c2ba
>
>
> Thanks,
> Nick
More information about the core-libs-dev
mailing list