[jdk21u-dev] Integrated: 8337038: Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java shoud set as /native

SendaoYan syan at openjdk.org
Tue Jul 30 15:47:37 UTC 2024


On Wed, 24 Jul 2024 09:34:23 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> Test `test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java` invoke `CreationTimeHelper` in [CreationTime.java](https://github.com/openjdk/jdk21u-dev/blob/master/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java#L109), and `CreationTimeHelper` invoke native function. So test `test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java` should set as `/native`.
> In the [PR](https://github.com/openjdk/jdk21u/pull/282) of backport [JDK-8316304](https://bugs.openjdk.org/browse/JDK-8316304) to jdk21u-dev, this test has been rewritten to use JNI instead so as to avoid using `Linker API`, thus this is specific to jdk21u-dev and jdk17u-dev.
> Trivial fix, the change has been verified, no risk.

This pull request has now been integrated.

Changeset: 2c9f741d
Author:    SendaoYan <syan at openjdk.org>
Committer: Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/2c9f741d9ce27cd81e4ad9395a88af1b34a2ba77
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8337038: Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java shoud set as /native

Reviewed-by: mbaesken

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

PR: https://git.openjdk.org/jdk21u-dev/pull/869


More information about the jdk-updates-dev mailing list