mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix LaunchedURLClassLoader Java 1.6 compatibility
This commit is contained in:
parent
cd2c18965e
commit
680741fdc8
@ -46,7 +46,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
|
||||
@Override
|
||||
protected Class<?> loadClass(String name, boolean resolve)
|
||||
throws ClassNotFoundException {
|
||||
synchronized (getClassLoadingLock(name)) {
|
||||
synchronized (this) {
|
||||
Class<?> loadedClass = findLoadedClass(name);
|
||||
if (loadedClass == null) {
|
||||
loadedClass = doLoadClass(name);
|
||||
|
Loading…
Reference in New Issue
Block a user