JDK-7194032 : TEST_BUG: update tests for upcoming changes for jtreg
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 6,7,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-24
  • Updated: 2014-07-18
  • Resolved: 2012-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other JDK 6 JDK 7 JDK 8
5.0u75Fixed 5.0u81Fixed 6u85Fixed 7u21Fixed 8 b55Fixed
Related Reports
Duplicate :  
Relates :  
Description
Currently, jtreg incorrectly confuses the concept of the /directory/ in which the test's class will be written with the /classpath/ used to locate all of the test's classes, including any library classes.  It provides env variable TESTCLASSES and system property test.classes, and tests use these to mean both a directory and a classpath.

jtreg will be fixed to separate the two concepts, such that TESTCLASSES/test.classes will continue to mean the /directory/ in which the test's class will the written, and will introduce TESTCLASSPATH/test.class.path for the classpath used to locate all the test's classes.

This change only affects a small number of tests, which use both @library and TESTCLASSES. Two RMI tests are affected.
FAILED: java/rmi/activation/Activatable/extLoadedImpl/ext.sh
FAILED: java/rmi/registry/readTest/readTest.sh

Comments
Test fails 6u81 and 5u71 RULE java/rmi/activation/Activatable/extLoadedImpl/ext.sh Exception java.lang.ClassNotFoundException: TestLibrary RULE java/rmi/activation/Activatable/extLoadedImpl/ext.sh Exception java.lang.NoClassDefFoundError: TestLibrary RULE java/rmi/activation/Activatable/extLoadedImpl/ext.sh ExitCode 1
18-07-2014

Both tests: java/rmi/activation/Activatable/extLoadedImpl/ext.sh and java/rmi/server/RMIClassLoader/packageDefinition/PackageDefinitionsTest.java are fixed. Filled bugt randomly fail, be caused by other issue: such as https://jbs.oracle.com/bugs/browse/JDK-7152892
19-08-2013

EVALUATION Yes
28-08-2012

SUGGESTED FIX The fix is to update the tests where they are using TESTCLASSES/test.classes as a classpath. To ease migration onto the new jtreg, it is suggested that the tests check to see if the new variables are defined (i.e. new jtreg) and to fall back on the old variables if they are not defined (i.e. old jtreg). In shell terms, this can be written ${TESTCLASSPATH:-${TESTCLASSES}}
24-08-2012