Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8171374

GenGraphs should filter the rank grouping if the group is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • infrastructure
    • None
    • b150

      diff --git a/make/src/classes/build/tools/jigsaw/GenGraphs.java b/make/src/classes/build/tools/jigsaw/GenGraphs.java
      --- a/make/src/classes/build/tools/jigsaw/GenGraphs.java
      +++ b/make/src/classes/build/tools/jigsaw/GenGraphs.java
      @@ -214,13 +214,13 @@

                  // same ranks
                  ranks.stream()
      - .forEach(group -> out.format("{rank=same %s}%n",
      - descriptors.stream()
      + .map(group -> descriptors.stream()
                              .map(ModuleDescriptor::name)
                              .filter(group::contains)
                              .map(mn -> "\"" + mn + "\"")
      - .collect(joining(","))
      - ));
      + .collect(joining(",")))
      + .filter(group -> group.length() > 0)
      + .forEach(group -> out.format("{rank=same %s}%n", group));

                  descriptors.stream()
                      .filter(jdkGroup::contains)

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: