Skip to content

Commit dfa5620

Browse files
committed
8345164: Remove residual --enable-preview in FFM tests and benchmarks
Reviewed-by: mcimadamore, jvernee
1 parent 65b5a2e commit dfa5620

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/jdk/java/foreign/enablenativeaccess/TestEnableNativeAccessJarManifest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024 Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -21,7 +21,7 @@
2121
* questions.
2222
*/
2323

24-
/**
24+
/*
2525
* @test
2626
* @summary Basic test for Enable-Native-Access attribute in the
2727
* manifest of a main application JAR
@@ -78,7 +78,6 @@ public void testEnableNativeAccessInJarManifest(String action, String cls, Resul
7878

7979
// java -jar test.jar
8080
List<String> command = new ArrayList<>(List.of(
81-
"--enable-preview",
8281
"-Djava.library.path=" + System.getProperty("java.library.path")
8382
));
8483
command.addAll(vmArgs);

test/micro/org/openjdk/bench/java/lang/foreign/ToJavaStringTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024 Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,7 @@
4343
@Measurement(iterations = 10, time = 500, timeUnit = TimeUnit.MILLISECONDS)
4444
@State(Scope.Benchmark)
4545
@OutputTimeUnit(TimeUnit.NANOSECONDS)
46-
@Fork(value = 3, jvmArgs = { "--enable-native-access=ALL-UNNAMED", "--enable-preview", "-Djava.library.path=micro/native" })
46+
@Fork(value = 3, jvmArgs = { "--enable-native-access=ALL-UNNAMED", "-Djava.library.path=micro/native" })
4747
public class ToJavaStringTest {
4848

4949
private MemorySegment strSegment;

0 commit comments

Comments
 (0)