aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java - java.lang.NullPointerException with jdk25 on AIX

Open sophia-guo opened this issue 3 months ago • 4 comments

java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java - java.lang.NullPointerException: Cannot invoke "java.nio.file.attribute.UserDefinedFileAttributeView.write(String, java.nio.ByteBuffer)" because "" is null - newly supported on AIX, believe related with https://bugs.openjdk.org/browse/JDK-8360887 - help needed to confirm.

sophia-guo avatar Sep 15 '25 16:09 sophia-guo

It seems likely to be related to https://bugs.openjdk.org/browse/JDK-8360887 @sophia-guo

I believe the changes to fix that issue are present in the release branch we built from

AixFileSystemProvider.java‎

Run this testcase against SapMachine JDK25 AIX build in Grinder/14507 which fails in the same way as the Temurin build

Execution failed: `main' threw exception: java.lang.NullPointerException: Cannot invoke "java.nio.file.attribute.UserDefinedFileAttributeView.write(String, java.nio.ByteBuffer)" because "<local2>" is null    

Rerun in Grinder

smlambert avatar Sep 18 '25 19:09 smlambert

This failure can be marked as non-blocking, but report the failure upstream (and exclude against the upstream issue URL).

smlambert avatar Sep 18 '25 19:09 smlambert

It seems likely to be related to https://bugs.openjdk.org/browse/JDK-8360887 @sophia-guo

I believe the changes to fix that issue are present in the release branch we built from

AixFileSystemProvider.java‎

Run this testcase against SapMachine JDK25 AIX build in Grinder/14507 which fails in the same way as the Temurin build

Execution failed: `main' threw exception: java.lang.NullPointerException: Cannot invoke "java.nio.file.attribute.UserDefinedFileAttributeView.write(String, java.nio.ByteBuffer)" because "<local2>" is null    

@smlambert I've confirmed this does fail on jdk-25u AIX built from current jdk25u HEAD, which contains all the fixes for JDK-8360887 , so I think it's different... I will raise a new bug upstream and exclude

andrew-m-leonard avatar Oct 21 '25 09:10 andrew-m-leonard

Raised upstream bug https://bugs.openjdk.org/browse/JDK-8370316

andrew-m-leonard avatar Oct 21 '25 09:10 andrew-m-leonard