Added FIXME

This commit is contained in:
Trustin Lee 2011-06-29 12:30:47 +09:00
parent 45a7692f07
commit 0062cb743c

View File

@ -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) {