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()));