Added FIXME
This commit is contained in:
parent
45a7692f07
commit
0062cb743c
@ -78,11 +78,13 @@ class CompactObjectInputStream extends ObjectInputStream {
|
|||||||
try {
|
try {
|
||||||
return loadClass(className);
|
return loadClass(className);
|
||||||
} catch (ClassNotFoundException ex) {
|
} catch (ClassNotFoundException ex) {
|
||||||
|
// FIXME Cache the result to avoid the cost of ClassNotFoundException.
|
||||||
return super.resolveClass(desc);
|
return super.resolveClass(desc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<?> loadClass(String className) throws ClassNotFoundException {
|
protected Class<?> loadClass(String className) throws ClassNotFoundException {
|
||||||
|
// FIXME Cache the result to avoid the cost of loading classes.
|
||||||
Class<?> clazz;
|
Class<?> clazz;
|
||||||
ClassLoader classLoader = this.classLoader;
|
ClassLoader classLoader = this.classLoader;
|
||||||
if (classLoader == null) {
|
if (classLoader == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user