java.lang.RuntimeException: 'Adapters:\\s+total=[1-9][0-9]+' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:407)
at AOTCodeFlags$Tester.checkExecution(AOTCodeFlags.java:131)
at jdk.test.lib.cds.CDSAppTester.executeAndCheck(CDSAppTester.java:222)
at jdk.test.lib.cds.CDSAppTester.createAOTCache(CDSAppTester.java:338)
at jdk.test.lib.cds.CDSAppTester.runAOTWorkflow(CDSAppTester.java:498)
at jdk.test.lib.cds.CDSAppTester.run(CDSAppTester.java:448)
at AOTCodeFlags.main(AOTCodeFlags.java:56)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1474)
This gets a warning that preview features need to be enabled for the compilation task.
STDOUT:
Command line: [/Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/images/jdk/bin/java -cp /Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/test-support/jtreg_open_test_hotspot_jtreg_runtime_cds_appcds_aotCode_AOTCodeFlags_java/classes/0/runtime/cds/appcds/aotCode/AOTCodeFlags.d:/Users/cphillim/hg/valhalla-matias-cds/open/test/hotspot/jtreg/runtime/cds/appcds/aotCode:/Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/test-support/jtreg_open_test_hotspot_jtreg_runtime_cds_appcds_aotCode_AOTCodeFlags_java/classes/0/runtime/cds/appcds/aotCode/AOTCodeFlags.d/test/lib:/Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/test-support/jtreg_open_test_hotspot_jtreg_runtime_cds_appcds_aotCode_AOTCodeFlags_java/classes/0/runtime/cds/appcds/aotCode/AOTCodeFlags.d/test/setup_aot:/private/var/tmp/jib-cphillim/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jtreg.jar:/private/var/tmp/jib-cphillim/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.13.4.jar:/private/var/tmp/jib-cphillim/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/testng-7.3.0.jar:/private/var/tmp/jib-cphillim/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jcommander-1.82.jar:/private/var/tmp/jib-cphillim/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/guice-5.1.0.jar -Dtidy=/var/tmp/jib-cphillim/install/jpg/infra/builddeps/tidy-html-macosx/5.9.20+1/tidy-html-macosx-5.9.20+1.tar.gz/tidy/bin/tidy -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/var/tmp/jib-cphillim/install/jdk/25/37/bundles/macos-aarch64/jdk-25_macos-aarch64_bin.tar.gz/jdk-25.jdk/Contents/Home -Djava.io.tmpdir=/Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/test-support/jtreg_open_test_hotspot_jtreg_runtime_cds_appcds_aotCode_AOTCodeFlags_java/tmp --enable-preview -XX:AOTMode=record -XX:AOTConfiguration=AOTCodeFlags.aotconfig -Xlog:arguments,class+load=debug,aot=debug,cds=debug,aot+class=debug:file=AOTCodeFlags.aotconfig.log::filesize=0 -cp app.jar JavacBenchApp 10 ]
[2025-12-11T20:53:24.513830Z] Gathering output for process 88646
[ELAPSED: 1955 ms]
[logging stdout to /Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/test-support/jtreg_open_test_hotspot_jtreg_runtime_cds_appcds_aotCode_AOTCodeFlags_java/scratch/0/runtime.cds.appcds.aotCode.AOTCodeFlags.java-0000-TRAINING.stdout]
[logging stderr to /Users/cphillim/hg/valhalla-matias-cds/build/macosx-aarch64/test-support/jtreg_open_test_hotspot_jtreg_runtime_cds_appcds_aotCode_AOTCodeFlags_java/scratch/0/runtime.cds.appcds.aotCode.AOTCodeFlags.java-0000-TRAINING.stderr]
[STDERR]
error: class file for /modules/java.base/java/lang/Record.class uses preview features of Java SE 26.
(use --enable-preview to allow loading of class files which contain preview features)
1 error
Exception in thread "main" java.lang.InternalError: compilation failure
at JavacBenchApp.compile(JavacBenchApp.java:125)
at JavacBenchApp.main(JavacBenchApp.java:233)
[2025-12-11T20:53:26.468802Z] Waiting for completion for process 88646
[2025-12-11T20:53:26.468898Z] Waiting for completion finished for process 88646
[output file: AOTCodeFlags.aotconfig 28540928 bytes]
[output file: AOTCodeFlags.aotconfig.log 2593328 bytes]
STDERR:
stdout: [ AOTConfiguration recorded: AOTCodeFlags.aotconfig
];
stderr: [error: class file for /modules/java.base/java/lang/Record.class uses preview features of Java SE 26.
(use --enable-preview to allow loading of class files which contain preview features)
1 error
Exception in thread "main" java.lang.InternalError: compilation failure
at JavacBenchApp.compile(JavacBenchApp.java:125)
at JavacBenchApp.main(JavacBenchApp.java:233)
]
exitValue = 1