RFR: JDK-8276650: GenGraphs does not produce deterministic output

Anthony Vanelverdinghe duke at openjdk.java.net
Thu Nov 4 21:49:15 UTC 2021


On Thu, 4 Nov 2021 19:28:58 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> The dot graph should print the edges in alphatical order.   A simple fix to sort the edges before printing them.

src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleDotGraph.java line 336:

> 334:         private final String name;
> 335:         private final Graph<String> graph;
> 336:         private final TreeSet<ModuleDescriptor> descriptors = new TreeSet<>();

This change is unnecessary, isn't it?

-------------

PR: https://git.openjdk.java.net/jdk/pull/6266


More information about the compiler-dev mailing list