Source:
<code>public byte[] transform( ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { String fullClassName = className.replace("/", "."); if (isExcludedClass(loader, fullClassName)) { debug_transform.log("transform: ignoring excluded class %s%n", className); return null; } debug_transform.log("%ntransform: ENTER %s%n", className); JavaClass c; try { ClassParser parser = new ClassParser(new ByteArrayInputStream(classfileBuffer), className); c = parser.parse(); } catch (Exception e) { debug_transform.log("transform: EXIT parse of %s resulted in error %s%n", className, e); <START> throw new RuntimeException("Unexpected parse exception", e); <END> } try { ClassGen cg = new ClassGen(c); if (transformClass(cg)) { JavaClass javaClass = cg.getJavaClass(); if (ReplaceCallAgent.debug) { Path filepath = ReplaceCallAgent.debugPath.resolve(className + ".class"); javaClass.dump(filepath.toFile()); } debug_transform.log("transform: EXIT class %s transformed", className); return javaClass.getBytes(); } else { debug_transform.log("transform: EXIT class %s not transformed", className); return null; } } catch (Throwable e) { debug_transform.log( "transform: EXIT transform of %s resulted in exception %s%n", className, e); System.out.format( "Unexpected exception %s (%s) in class transform of %s%n", e, e.getCause(), className); e.printStackTrace(); return null; } }</code><technical_language>diagnostic clear this is a bug in Randoop a user error</technical_language>

Target:
public byte[] transform( ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { String fullClassName = className.replace("/", "."); if (isExcludedClass(loader, fullClassName)) { debug_transform.log("transform: ignoring excluded class %s%n", className); return null; } debug_transform.log("%ntransform: ENTER %s%n", className); JavaClass c; try { ClassParser parser = new ClassParser(new ByteArrayInputStream(classfileBuffer), className); c = parser.parse(); } catch (Exception e) { debug_transform.log("transform: EXIT parse of %s resulted in error %s%n", className, e); return null; } try { ClassGen cg = new ClassGen(c); if (transformClass(cg)) { JavaClass javaClass = cg.getJavaClass(); if (ReplaceCallAgent.debug) { Path filepath = ReplaceCallAgent.debugPath.resolve(className + ".class"); javaClass.dump(filepath.toFile()); } debug_transform.log("transform: EXIT class %s transformed", className); return javaClass.getBytes(); } else { debug_transform.log("transform: EXIT class %s not transformed", className); return null; } } catch (IllegalClassFormatException e) { debug_transform.log( "transform: EXIT transform of %s resulted in exception %s%n", className, e); System.out.format( "Unexpected exception %s (%s) in class transform of %s%n", e, e.getCause(), className); throw e; } catch (Throwable e) { debug_transform.log( "transform: EXIT transform of %s resulted in exception %s%n", className, e); System.out.format( "Unexpected exception %s (%s) in class transform of %s%n", e, e.getCause(), className); e.printStackTrace(); return null; } }