Skip to content

Commit 0519a2f

Browse files
committed
Exclude jdk package in ShadowingClassLoader (JDK 11 compatibility)
Closes gh-23641
1 parent 6a08bfd commit 0519a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-context/src/main/java/org/springframework/instrument/classloading/ShadowingClassLoader.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -48,7 +48,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader {
4848

4949
/** Packages that are excluded by default. */
5050
public static final String[] DEFAULT_EXCLUDED_PACKAGES =
51-
new String[] {"java.", "javax.", "sun.", "oracle.", "com.sun.", "com.ibm.", "COM.ibm.",
51+
new String[] {"java.", "javax.", "jdk.", "sun.", "oracle.", "com.sun.", "com.ibm.", "COM.ibm.",
5252
"org.w3c.", "org.xml.", "org.dom4j.", "org.eclipse", "org.aspectj.", "net.sf.cglib",
5353
"org.springframework.cglib", "org.apache.xerces.", "org.apache.commons.logging."};
5454

0 commit comments

Comments
 (0)