HHH-12554 Make EnhancerImpl more closely match the semantics described in Enhancer javadoc
This commit is contained in:
parent
2fa5d3ccb8
commit
207a8f03af
|
@ -107,16 +107,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