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

jdeps usage of --dot-output doesn't provide valid output for modular jar

XMLWordPrintable

    • b22
    • generic
    • generic

        ADDITIONAL SYSTEM INFORMATION :
        Ran 'jdeps' on Windows 10, expecting the bug to be OS agnostic.

        A DESCRIPTION OF THE PROBLEM :
        The name of the generated .dot file using jdeps `--dot-output` option does not follow constant pattern as it is described in its documentation at: https://docs.oracle.com/javase/10/tools/jdeps.htm#JSWOR690 It states:
        "...one '.dot' file for each analyzed archive named 'archive-file-name.dot'..."

        This holds true for legacy jars, and for jars providing an 'Automatic-Module-Name'. The expected '.dot' file name changes when jdeps analyzes a modular jar, i.e. it contains a compile module descriptor.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Download 1: http://central.maven.org/maven2/org/ow2/asm/asm/5.2/asm-5.2.jar
        Download 2: http://central.maven.org/maven2/org/ow2/asm/asm/6.2.1/asm-6.2.1.jar

        Running 'jdeps --dot-output . asm-5.2.jar' produces 'asm-5.2.jar.dot'
        Running 'jdeps --dot-output . asm-6.2.1.jar' produces 'org.objectweb.asm.dot'

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Running 'jdeps --dot-output . asm-6.2.1.jar' should also produce a file with a name based on the analyzed jar file : 'asm-6.2.1.jar.dot'
        ACTUAL -
        Running 'jdeps --dot-output . asm-6.2.1.jar' produces 'org.objectweb.asm.dot'

        FREQUENCY : always


              mchung Mandy Chung
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: