Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901987

'lib.dirs' property cannot use libraries from external roots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg4.2
    • jtreg4.2
    • tools
    • None
    • b09

      if an "absolute" path for a testlibrary used in lib.dirs, jtreg won't add a library from lib.dirs if it's located in external root (external.lib.roots), because it c.s.j.r.config.TestProperties does not (and most probably should not) use external roots to locate a corresponding file in initLibDirSet method.

      Using a relative path is also impossible, because for such paths 'rootDir.toURI().relativize(f.toURI())).toString()' contains a scheme name - "file:", so libDirs set will contain a buggy library path, e.g. /file:/Users/iignatye/ws/jdk10/jdk10/test/lib/. fixing this problem by using toPath instead of toURI, makes jtreg to report an expected error --
      "effective library path is outside the test suite"

            jjg Jonathan Gibbons
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: