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

Refactor test library to decrease module dependencies of tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Resolved In Build:
      b96

      Description

      Some tests in jdk/test build the whole library like this:
      @build jdk.testlibrary.*
      thus inheriting module dependencies of all classes within the library.

      One particular example is these tests:
      test/java/io/InputStream/ReadAllBytes.java
      test/java/io/InputStream/ReadNBytes.java
      which inherit dependencies on java.management module through jdk.testlibrary.InputArguments class

      Another example is this:
      jdk.testlibrary.ProcessTools.getProcessId() depends on java.management.
      jdk.testlibrary.Utils.tryFindJvmPid(String) depends ProcessTools
      jdk.testlibrary.OutputAnalyzer.asLines(String) depends on Utils
      This makes all tests depending on OutputAnalyzer to depend on java.management.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shurailine Aleksandre Iline
              Reporter:
              shurailine Aleksandre Iline
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: