From f8b2574ebc32fa0e62dbaa0f2447757ff83c320f Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Mon, 7 Nov 2022 15:58:42 +0000 Subject: [PATCH] 8296137: diags-examples.xml is broken Reviewed-by: iris, vromero, ihse --- make/langtools/diags-examples.xml | 16 +++++++++++----- test/langtools/tools/javac/diags/Example.java | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/make/langtools/diags-examples.xml b/make/langtools/diags-examples.xml index ca2a082a445..9802d066693 100644 --- a/make/langtools/diags-examples.xml +++ b/make/langtools/diags-examples.xml @@ -35,20 +35,20 @@ Usage: By default, the reports will be generated in langtools/build/diags-examples/report/. --> - + - + - + @@ -68,12 +68,18 @@ By default, the reports will be generated in langtools/build/diags-examples/repo + + + + + + diff --git a/test/langtools/tools/javac/diags/Example.java b/test/langtools/tools/javac/diags/Example.java index 14cfa488141..8accf99788a 100644 --- a/test/langtools/tools/javac/diags/Example.java +++ b/test/langtools/tools/javac/diags/Example.java @@ -234,7 +234,7 @@ class Example implements Comparable { //automatic modules: Map> module2Files = modulePathFiles.stream() - .map(f -> f.toPath()) + .map(f -> f.toPath().toAbsolutePath()) .collect(Collectors.groupingBy(p -> modulePath.relativize(p) .getName(0) .toString()));