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

RegressionScript.testClassPath() returns invalid path to tools.jar

XMLWordPrintable

    • fcs
    • x86
    • generic

      Name: asR10013 Date: 08/12/2002



      Filed By : J2SE-SQA [###@###.###
      Testbase : Regression testsuite

      RegressionScript.testClassPath() returns <JDK installation directory>/jre/lib/tools.jar as a path to tools.jar meanwhile the correct path is
      <JDK installation directory>/lib/tools.jar when running tests in the samejvm mode.
      Actually this ^Ssituation happens because RegressionScript.stdJavaClassPath() uses java.home system property which points to the "jre" subdirectory of the JDK installation directory.
      By the way, the jtreg script forms the correct class path intentionally stripping off the "jre" part of the path, but that class path is not used in the samejvm mode.
      As a result many tests that use tools.jar (i.e. com/sun/jdi) fail to compile.

      ======================================================================

            jjg Jonathan Gibbons
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: