jdk-24/jdk/test/java/net/URLClassLoader/closetest
Lana Steuck 657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
..
serverRoot 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
test1/com/foo 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
test2/com/foo 6943119: Rebrand source copyright notices 2010-05-25 15:58:33 -07:00
build2.sh 6829919: URLClassLoader.close() doesn't close resource file if getResourceAsStream(...) was called before 2011-01-12 15:05:10 +00:00
build.sh 8027696: Incorrect copyright header in the tests 2013-11-12 20:24:25 +04:00
CloseTest.java 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013 2013-12-26 12:04:16 -08:00
Common.java 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013 2013-12-26 12:04:16 -08:00
GetResourceAsStream.java 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013 2013-12-26 12:04:16 -08:00
README 4167874: URL-downloaded jar files can consume all available file descriptors 2009-01-30 22:05:30 +00:00

test1 and test2 contain two different implementations of the same
classes. They are compiled and placed into two different target directories
and two jar files test1.jar and test2.jar.

The same class is in both jars/directories, but returns a different result
from the TestClass.getValue() method. The test does the following

1. copy test1.jar to a working directory and call it test.jar

2. load class and invoke method (checking result)

3. close the loader

4. delete test.jar (check delete succeeds)

5. copy test2.jar to same dir and repeat the test

6. The two tests are then repeated by copying the directories
   test1 and test2.

The loader also includes a http:// URL in its search path and a http
server is used to serve the required class.

serverRoot is used as the root directory for the http server.