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

[TESTBUG] Many unnecessary @module dependencies

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:

      Description

      Many hotspot tests (600+) have "@module java.base/jdk.internal.misc and java.management" but in many cases they are not actually needed

      hotspot/test$ hg diff ./runtime/NMT/CommandLineDetail.java
      diff -r 1658b112521e test/runtime/NMT/CommandLineDetail.java
      --- a/test/runtime/NMT/CommandLineDetail.java Wed Jul 19 11:48:25 2017 -0700
      +++ b/test/runtime/NMT/CommandLineDetail.java Mon Jul 24 18:35:12 2017 -0700
      @@ -26,8 +26,7 @@
        * @key nmt
        * @summary Running with NMT detail should not result in an error
        * @library /test/lib
      - * @modules java.base/jdk.internal.misc
      - * java.management
      +
        */
      hotspot/test$ jtreg ./runtime/NMT/CommandLineDetail.java
      runner starting test: runtime/NMT/CommandLineDetail.java
      runner finished test: runtime/NMT/CommandLineDetail.java
      Passed. Execution successful
      Test results: passed: 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: