}
ClassFile file = pkg.getBinaryFile(id.getName());
if (file == null)
throw new IllegalArgumentException("No file for: " +
id.getName());
BinaryClass bc;
try {
bc = loadFile(file);
} catch (IOException e) {
throw new IllegalArgumentException("IOException: " +
e.getMessage());
}
if (bc == null)
throw new IllegalArgumentException("No class in: " +
file);
if (!bc.getName().equals(id))
throw new IllegalArgumentException("Wrong class in: " +
file);
c.setDefinition(bc, CS_BINARY);
bc.loadNested(this, ATT_ALLCLASSES);
}