A Custom Class Loader Part C
//don’t attempt to load a system file (for Java 1.1)
if (typeName.startsWith(“java.”)) {
throw new ClassNotFoundException();
//try to load it from subdirectory “hole”
byte[] typeData = getTypeFromHole(typeName);
throw new ClassNotFoundException();
defineClass(typeName, typeData, 0, typeData.length);
if (result == null) { throw new ClassFormatError(); }
if (resolveIt) { resolveClass(result); }