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

jdeps generates illegal dot file containing nodesep=0,500000

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 21.0.1, 23
    • tools
    • b09
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      System locale: fr_FR

      A DESCRIPTION OF THE PROBLEM :
      Similar to JDK-8204584 "jdeps generates illegal dot file containing ranksep=0,600000", but for the "rankSep" attribute, which was made configurable by JDK-8274311.

      jdeps should format double with no localization:

      ```
      diff --git a/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleDotGraph.java b/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleDotGraph.java
      index a23f25be9d2a..41616aab5dee 100644
      --- a/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleDotGraph.java
      +++ b/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleDotGraph.java
      @@ -353,7 +353,7 @@ public void build(Path filename) throws IOException {
                        PrintWriter out = new PrintWriter(writer)) {
       
                       out.format("digraph \"%s\" {%n", name);
      - out.format(" nodesep=%f;%n", attributes.nodeSep());
      + out.format((Locale)null, " nodesep=%f;%n", attributes.nodeSep());
                       out.format((Locale)null, " ranksep=%f;%n", attributes.rankSep());
                       out.format(" pencolor=transparent;%n");
                       out.format(" node [shape=plaintext, fontcolor=\"%s\", fontname=\"%s\","
      ```


      CUSTOMER SUBMITTED WORKAROUND :
      Run jdeps with an English locale, e.g. on Linux: "LANG=C jdeps ..."

      FREQUENCY : always


            mchung Mandy Chung (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: