HHH-12554 Make EnhancerImpl more closely match the semantics described in Enhancer javadoc
This commit is contained in:
parent
60852f4134
commit
378dcfbe86
|
@ -103,16 +103,14 @@ public class EnhancerImpl implements Enhancer {
|
|||
managedCtClass
|
||||
);
|
||||
if ( builder == null ) {
|
||||
return null;
|
||||
return originalBytes;
|
||||
}
|
||||
else {
|
||||
return builder.make().getBytes();
|
||||
}
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
e.printStackTrace();
|
||||
log.unableToBuildEnhancementMetamodel( safeClassName );
|
||||
return null;
|
||||
throw new EnhancementException( "Failed to enhance class " + className, e );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue