From 647d395dd5acd8b0d55061a92eadbc5789fd3f5c Mon Sep 17 00:00:00 2001 From: lovesh-ap Date: Fri, 22 Sep 2023 11:23:01 +0530 Subject: [PATCH] Transform classes, PROTECTED_PREFIXES update --- .../security/introspec/internal/TransformingClassLoader.java | 2 +- .../instrumentation/xpath/camel/BuilderSupportTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename instrumentation-security/camel-xpath/src/test/java/com/newrelic/{ => test}/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java (98%) diff --git a/instrumentation-security-test/src/main/java/com/newrelic/agent/security/introspec/internal/TransformingClassLoader.java b/instrumentation-security-test/src/main/java/com/newrelic/agent/security/introspec/internal/TransformingClassLoader.java index d3e34e26f..c3718dd50 100644 --- a/instrumentation-security-test/src/main/java/com/newrelic/agent/security/introspec/internal/TransformingClassLoader.java +++ b/instrumentation-security-test/src/main/java/com/newrelic/agent/security/introspec/internal/TransformingClassLoader.java @@ -22,7 +22,7 @@ class TransformingClassLoader extends URLClassLoader { "java.lang.ProcessImpl", "java.io", "java.nio", "javax.servlet" }; private static final String[] PROTECTED_PREFIXES = new String[]{"java.", "javax.", "com.sun.", "sun.", - "org.junit.", "junit.framework", "com.newrelic", "org.xml", "org.w3c"}; + "org.junit.", "junit.framework", "com.newrelic.agent", "com.newrelic.api", "org.xml", "org.w3c"}; private static final String[] INTROSPECTOR_MUST_LOADS = new String[]{ // This class needs to be woven. diff --git a/instrumentation-security/camel-xpath/src/test/java/com/newrelic/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java b/instrumentation-security/camel-xpath/src/test/java/com/newrelic/test/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java similarity index 98% rename from instrumentation-security/camel-xpath/src/test/java/com/newrelic/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java rename to instrumentation-security/camel-xpath/src/test/java/com/newrelic/test/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java index 0f092a58e..c1e65106e 100644 --- a/instrumentation-security/camel-xpath/src/test/java/com/newrelic/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java +++ b/instrumentation-security/camel-xpath/src/test/java/com/newrelic/test/agent/security/instrumentation/xpath/camel/BuilderSupportTest.java @@ -1,4 +1,4 @@ -package com.newrelic.agent.security.instrumentation.xpath.camel; +package com.newrelic.test.agent.security.instrumentation.xpath.camel; import com.newrelic.agent.security.introspec.InstrumentationTestConfig; import com.newrelic.agent.security.introspec.SecurityInstrumentationTestRunner;