Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/FindStore/readme.txt
12506 views
1
2
#
3
# Copyright (c) 2001, 2019 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 the basic find and store functionality of URLClassLoader with various different classpath configurations
25
26
Note here that "noTimestampChecks" stops the shared classes support from recognising that jar files have been updated
27
28
FindStore.BuildInitial
29
Builds A.jar B.jar C.Jar and D.jar which will be used to test explicit paths
30
Builds E.jar F.jar G.jar and H.jar which will be used to test relative paths
31
Builds I.jar, J.jar K.jar and L.jar which will be used to test the net use paths
32
Builds class files into M_Classes, N_Classes, O_Classes and P_Classes to test directory paths
33
All of the data classes will print "CACHED" when they are loaded.
34
35
FindStore.StoreExplicit
36
Runs A_Main which will cause classes to be loaded from A.jar B.jar C.Jar and D.jar.
37
The classpath used specifies explicit paths.
38
Nothing.jar is added as the 0th element of the classpath. This is used for testing classpath matching later.
39
40
FindStore.StoreRelative
41
Runs E_Main which will cause classes to be loaded from E.jar F.jar G.jar and H.jar.
42
The classpath used specifies relative paths.
43
Nothing.jar is added as the 1st element of the classpath. This is used for testing classpath matching later.
44
45
FindStore.StoreNetUse
46
Runs I_Main which will cause classes to be loaded from I.jar, J.jar K.jar and L.jar.
47
The classpath used specifies net use paths.
48
Nothing.jar is added as the 3rd element of the classpath. This is used for testing classpath matching later.
49
50
FindStore.StoreClassfile
51
Runs M_Main which will cause classes to be loaded from M_Classes, N_Classes, O_Classes and P_Classes.
52
The classpath used specifies directories.
53
Nothing.jar is added as the 4th element of the classpath. This is used for testing classpath matching later.
54
55
FindStore.BuildVerify
56
Rebuilds all of the jar files with similar class files which output "LOCAL" instead of "CACHED" when they are loaded.
57
The classes are in the VerifyClasses subdirectory
58
59
FindStore.FindExplicit
60
Runs the JVM with "noTimestampChecks" using the same classpath as StoreExplicit.
61
Expects that the "CACHED" classes will be loaded.
62
63
FindStore.FindRelative
64
Runs the JVM with "noTimestampChecks" using the same classpath as StoreRelative.
65
Expects that the "CACHED" classes will be loaded.
66
67
FindStore.FindNetUse
68
Runs the JVM with "noTimestampChecks" using the same classpath as StoreNetUse.
69
Expects that the "CACHED" classes will be loaded.
70
71
FindStore.FindClassfile
72
Runs the JVM with "noTimestampChecks" using the same classpath as StoreClassFile.
73
Expects that the "CACHED" classes will be loaded.
74
75
FindStore.FindDiffcpExplicit
76
Runs the JVM with "noTimestampChecks" using a different classpath to StoreExplicit (Nothing.jar is removed).
77
Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match
78
79
FindStore.FindDiffcpRelative
80
Runs the JVM with "noTimestampChecks" using a different classpath to StoreRelative (Nothing.jar is removed).
81
Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match
82
83
FindStore.FindDiffcpNetUse
84
Runs the JVM with "noTimestampChecks" using a different classpath to StoreNetUse (Nothing.jar is removed).
85
Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match
86
87
FindStore.FindDiffcpClassfile
88
Runs the JVM with "noTimestampChecks" using a different classpath to StoreClassFile (Nothing.jar is removed).
89
Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match
90
91