mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Add annotation in test
This commit is contained in:
parent
e53f77f41d
commit
3e9d6730d4
@ -35,6 +35,7 @@
|
||||
* @run driver GeneratedInternedString
|
||||
*/
|
||||
|
||||
import jdk.internal.vm.annotation.AOTSafeClassInitializer;
|
||||
import jdk.test.lib.cds.SimpleCDSAppTester;
|
||||
|
||||
public class GeneratedInternedString {
|
||||
@ -77,6 +78,7 @@ class GeneratedInternedStringApp {
|
||||
}
|
||||
|
||||
// A variant using a bespoke record
|
||||
@AOTSafeClassInitializer
|
||||
record GeneratedInternedStringRecordApp(int value) {
|
||||
|
||||
static volatile int n = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user