Skip to content

Commit b0058d7

Browse files
reenable security manager instrumentation
1 parent 4e6dda1 commit b0058d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

newrelic-agent/src/main/java/com/newrelic/agent/instrumentation/builtin/ClassLoaderPackageAccessInstrumentation.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
@Weave(type = MatchType.ExactClass, originalName = "java.lang.ClassLoader")
2525
public class ClassLoaderPackageAccessInstrumentation {
2626

27-
// private void checkPackageAccess(Class<?> cls, ProtectionDomain pd) {
28-
// if (cls.isAnnotationPresent(InstrumentedClass.class)) {
29-
// return;
30-
// }
31-
// Weaver.callOriginal();
32-
// }
27+
private void checkPackageAccess(Class<?> cls, ProtectionDomain pd) {
28+
if (cls.isAnnotationPresent(InstrumentedClass.class)) {
29+
return;
30+
}
31+
Weaver.callOriginal();
32+
}
3333

3434
}

0 commit comments

Comments
 (0)