File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javaagent-bootstrap/src/test/groovy/io/opentelemetry/javaagent/bootstrap Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class AgentClassLoaderTest extends Specification {
56
56
def " multi release jar" () {
57
57
setup :
58
58
boolean jdk8 = " 1.8" == System . getProperty(" java.specification.version" )
59
- def mrJarClass = Class . forName(" io.opentelemetry.instrumentation.resources.ProcessArguments" )
59
+ def mrJarClass = Class . forName(" io.opentelemetry.instrumentation.resources.internal. ProcessArguments" )
60
60
// sdk is a multi release jar
61
61
URL multiReleaseJar = mrJarClass. getProtectionDomain(). getCodeSource(). getLocation()
62
62
AgentClassLoader loader = new AgentClassLoader (new File (multiReleaseJar. toURI())) {
@@ -67,15 +67,15 @@ class AgentClassLoaderTest extends Specification {
67
67
}
68
68
69
69
when :
70
- URL url = loader. findResource(" io/opentelemetry/instrumentation/resources/ProcessArguments.class" )
70
+ URL url = loader. findResource(" io/opentelemetry/instrumentation/resources/internal/ ProcessArguments.class" )
71
71
72
72
then :
73
73
url != null
74
74
// versioned resource is found when not running on jdk 8
75
75
jdk8 != url. toString(). contains(" META-INF/versions/9/" )
76
76
77
77
and :
78
- Class<?> clazz = loader. loadClass(" io.opentelemetry.instrumentation.resources.ProcessArguments" )
78
+ Class<?> clazz = loader. loadClass(" io.opentelemetry.instrumentation.resources.internal. ProcessArguments" )
79
79
// class was loaded by agent loader used in this test
80
80
clazz. getClassLoader() == loader
81
81
Method method = clazz. getDeclaredMethod(" getProcessArguments" )
You can’t perform that action at this time.
0 commit comments