Skip to content

Commit

Permalink
Merge pull request quarkusio#41935 from zakkak/2024-07-16-fix-41917
Browse files Browse the repository at this point in the history
Handle new format of used_classes_* reports in GraalVM for JDK 24
  • Loading branch information
gsmet authored Jul 17, 2024
2 parents 731c915 + e849b75 commit 728feba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public static ClassInclusionReport load() {
TreeSet<String> set = new TreeSet<>();
try (Scanner scanner = new Scanner(usedClassesReport.toFile())) {
while (scanner.hasNextLine()) {
set.add(scanner.nextLine());
// Starting with GraalVM for JDK 24 the format of the report has changed prefixing each line with
// the class loader name and a colon. We need to strip that part.
String[] line = scanner.nextLine().split(":");
set.add(line[line.length - 1]);
}
} catch (FileNotFoundException e) {
throw new RuntimeException("Could not load used classes report", e);
Expand Down

0 comments on commit 728feba

Please sign in to comment.