Skip to content

Commit bdb9473

Browse files
committed
Refined default excluded packages
Issue: SPR-13886
1 parent b6f1afd commit bdb9473

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spring-core/src/main/java/org/springframework/core/OverridingClassLoader.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
import org.springframework.util.FileCopyUtils;
2424

2525
/**
26-
* {@code ClassLoader} that does <i>not</i> always delegate to the
27-
* parent loader, as normal class loaders do. This enables, for example,
28-
* instrumentation to be forced in the overriding ClassLoader, or a
29-
* "throwaway" class loading behavior, where selected classes are
30-
* temporarily loaded in the overriding ClassLoader, in order to load
31-
* an instrumented version of the class in the parent ClassLoader later on.
26+
* {@code ClassLoader} that does <i>not</i> always delegate to the parent loader
27+
* as normal class loaders do. This enables, for example, instrumentation to be
28+
* forced in the overriding ClassLoader, or a "throwaway" class loading behavior
29+
* where selected application classes are temporarily loaded in the overriding
30+
* {@code ClassLoader} for introspection purposes before eventually loading an
31+
* instrumented version of the class in the given parent {@code ClassLoader}.
3232
*
3333
* @author Rod Johnson
3434
* @author Juergen Hoeller
@@ -39,7 +39,7 @@ public class OverridingClassLoader extends DecoratingClassLoader {
3939

4040
/** Packages that are excluded by default */
4141
public static final String[] DEFAULT_EXCLUDED_PACKAGES = new String[]
42-
{"java.", "javax.", "sun.", "oracle.", "javassist.", "org.springframework.core."};
42+
{"java.", "javax.", "sun.", "oracle.", "javassist.", "org.aspectj.", "net.sf.cglib."};
4343

4444
private static final String CLASS_FILE_SUFFIX = ".class";
4545

0 commit comments

Comments
 (0)