mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix tests for jdk 11
GitOrigin-RevId: 4fe5d82f3562312c199aa24cefc4dc14e8305653
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1177fe592a
commit
77f5f5f94a
+8
@@ -85,6 +85,10 @@ public class InstrumentationClassFinder {
|
||||
|
||||
@Override
|
||||
protected Class findClass(String name) throws ClassNotFoundException {
|
||||
Class aClass = InstrumentationClassFinder.this.findClass(name);
|
||||
if (aClass != null) {
|
||||
return aClass;
|
||||
}
|
||||
final InputStream is = lookupClassBeforeClasspath(name.replace('.', '/'));
|
||||
if (is == null) {
|
||||
throw new ClassNotFoundException("Class not found: " + name.replace('/', '.')); // ensure presentable class name in error message
|
||||
@@ -106,6 +110,10 @@ public class InstrumentationClassFinder {
|
||||
return loader;
|
||||
}
|
||||
|
||||
protected Class findClass(String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void releaseResources() {
|
||||
myPlatformClasspath.releaseResources();
|
||||
myClasspath.releaseResources();
|
||||
|
||||
Reference in New Issue
Block a user