Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/JarExt/readme.txt
12602 views
1
2
#
3
# Copyright (c) 2001, 2018 IBM Corp. and others
4
#
5
# This program and the accompanying materials are made available under
6
# the terms of the Eclipse Public License 2.0 which accompanies this
7
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
8
# or the Apache License, Version 2.0 which accompanies this distribution and
9
# is available at https://www.apache.org/licenses/LICENSE-2.0.
10
#
11
# This Source Code may also be made available under the following
12
# Secondary Licenses when the conditions for such availability set
13
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
14
# General Public License, version 2 with the GNU Classpath
15
# Exception [1] and GNU General Public License, version 2 with the
16
# OpenJDK Assembly Exception [2].
17
#
18
# [1] https://www.gnu.org/software/classpath/license.html
19
# [2] http://openjdk.java.net/legal/assembly-exception.html
20
#
21
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
22
#
23
24
These tests check that the Jar Extension mechanisms and Jar indexing work with shared classes
25
26
Note here that "noTimestampChecks" stops the shared classes support from recognising that jar files have been updated
27
28
JarExtensionsTests.BuildInitial1
29
Builds A.jar, B.jar, C.jar and D.jar where:
30
B.jar specifies C.jar as a "Class-Path:" in its manifest
31
Builds E.jar, E1.jar, F.jar, F1.jar, G.jar, G1.jar, H.jar and H1.jar where:
32
E.jar specifies E1.jar as a "Class-Path:" in its manifest
33
F.jar specifies F1.jar, G.jar and G1.jar as a "Class-Path:" in its manifest
34
H.jar specifies H1.jar as a "Class-Path:" in its manifest
35
These Jars do not use indexing
36
All of the data classes will print "CACHED" when they are loaded.
37
38
JarExtensionsTests.SingleJarInManifest
39
Run A_Main which loads classes from A.jar, B.jar, C.jar and D.jar, but C.jar is not on the classpath.
40
41
JarExtensionsTests.MultipleJarsInManifests
42
Run E_Main which loads classes from E.jar, E1.jar, F.jar, F1.jar, G.jar, G1.jar, H.jar and H1.jar,
43
but E1.jar, F1.jar, G.jar, G1.jar and H1.jar are not on the classpath
44
45
JarExtensionsTests.BuildVerify1
46
Rebuilds all of the jar files with similar class files which output "LOCAL" instead of "CACHED" when they are loaded.
47
The classes are in the VerifyClasses subdirectory
48
49
JarExtensionsTests.SingleJarInManifest.Verify1
50
Runs A_Main with "noTimestampChecks" which means that if the original "CACHED" classes are properly cached,
51
they will be loaded and run. If the classes from the new jar files are loaded, "LOCAL" is printed, which is an error.
52
53
JarExtensionsTests.SingleJarInManifest.Verify2
54
Runs A_Main without "noTimestampChecks". Expects that the JVM will spot that the jar files have changed and then
55
even though the required classes are in the cache, it should load the new ones from disk instead.
56
57
JarExtensionsTests.MultipleJarsInManifests.Verify1
58
Runs E_Main with "noTimestampChecks" which means that if the original "CACHED" classes are properly cached,
59
they will be loaded and run. If the classes from the new jar files are loaded, "LOCAL" is printed, which is an error.
60
61
JarExtensionsTests.MultipleJarsInManifests.Verify2
62
Runs E_Main without "noTimestampChecks". Expects that the JVM will spot that the jar files have changed and then
63
even though the required classes are in the cache, it should load the new ones from disk instead.
64
65
JarExtensionsTests.BuildInitial2
66
Exactly the same as JarExtensionsTests.BuildInitial1 - rebuild the jars with "CACHED" classes
67
68
JarExtensionsTests.CreateJarIndexes
69
Add indexes to jar files B.jar E.jar F.jar and H.jar, which are the jars containing the "Class-Path:" tag
70
71
JarExtensionsTests.SingleJarInManifestWithIndex
72
As JarExtensionsTests.SingleJarInManifest only with the additional jar indexes
73
74
JarExtensionsTests.MultipleJarsInManifestsWithIndex
75
As JarExtensionsTests.MultipleJarsInManifests only with the additional jar indexes
76
77
JarExtensionsTests.BuildVerify2
78
Exactly the same as JarExtensionsTests.BuildVerify1 - rebuild the jars with "LOCAL" classes
79
80
JarExtensionsTests.CreateJarIndexes
81
Add indexes to jar files B.jar E.jar F.jar and H.jar, which are the jars containing the "Class-Path:" tag
82
83
JarExtensionsTests.SingleJarInManifestWithIndex.Verify1
84
As JarExtensionsTests.SingleJarInManifest.Verify1 only with the additional jar indexes
85
86
JarExtensionsTests.SingleJarInManifestWithIndex.Verify2
87
As JarExtensionsTests.SingleJarInManifest.Verify2 only with the additional jar indexes
88
89
JarExtensionsTests.MultipleJarsInManifestsWithIndex.Verify1
90
As JarExtensionsTests.MultipleJarsInManifests.Verify1 only with the additional jar indexes
91
92
JarExtensionsTests.MultipleJarsInManifestsWithIndex.Verify2
93
As JarExtensionsTests.MultipleJarsInManifests.Verify2 only with the additional jar indexes
94
95
96