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

[TESTBUG] Many unnecessary @modules dependencies

    XMLWordPrintable

Details

    Description

      Many hotspot tests (600+) have "@modules 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

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

              Dates

                Created:
                Updated: