Fix tests for jdk 11

GitOrigin-RevId: 4fe5d82f3562312c199aa24cefc4dc14e8305653
This commit is contained in:
Alexander Lobas
2019-06-03 23:07:39 +03:00
committed by intellij-monorepo-bot
parent 1177fe592a
commit 77f5f5f94a
2 changed files with 38 additions and 7 deletions
@@ -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();