File tree 1 file changed +3
-2
lines changed
javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -486,9 +486,10 @@ public PlatformDelegatingClassLoader() {
486
486
@ Override
487
487
protected Class <?> loadClass (String name , boolean resolve ) throws ClassNotFoundException {
488
488
// prometheus exporter uses jdk http server, load it from the platform class loader
489
- // some custom extensions use java.sql classes, make these available to agent and extensions
489
+ // some custom extensions use java.* classes which are not in the boot loader such as
490
+ // java.sql.* and java.net.http.*
490
491
if (name != null
491
- && (name .startsWith ("com.sun.net.httpserver." ) || name .startsWith ("java.sql. " ))) {
492
+ && (name .startsWith ("com.sun.net.httpserver." ) || name .startsWith ("java." ))) {
492
493
return platformClassLoader .loadClass (name );
493
494
}
494
495
return Class .forName (name , false , null );
You can’t perform that action at this time.
0 commit comments