8385828: The javac benchmarks fail after JDK-8385347

Reviewed-by: asotona, syan
This commit is contained in:
Dusan Balek 2026-06-03 15:27:07 +00:00 committed by Adam Sotona
parent 85db081db4
commit 7a7f37f0e5

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -94,7 +94,7 @@ public class JavacBenchmark {
try (ZipInputStream zis = new ZipInputStream(new BufferedInputStream(JavacBenchmark.class.getResourceAsStream("/src.zip")))) {
for (ZipEntry entry; (entry = zis.getNextEntry()) != null;) {
final String ename = entry.getName();
if (!ename.startsWith("java.desktop") && !ename.startsWith("jdk.internal.vm.compiler") && !ename.startsWith("jdk.aot") && !ename.startsWith("jdk.accessibility") && !ename.startsWith("jdk.jsobject")) {
if (!ename.startsWith("java.desktop") && !ename.startsWith("jdk.internal.vm.compiler") && !ename.startsWith("jdk.aot") && !ename.startsWith("jdk.accessibility") && !ename.startsWith("jdk.jsobject") && !ename.startsWith("jdk.unsupported.desktop")) {
if (!entry.isDirectory() && ename.endsWith(".java")) {
Path dst = root.resolve(ename);
Files.createDirectories(dst.getParent());