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
|
managedCtClass
|
||||||
);
|
);
|
||||||
if ( builder == null ) {
|
if ( builder == null ) {
|
||||||
return null;
|
return originalBytes;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return builder.make().getBytes();
|
return builder.make().getBytes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (RuntimeException e) {
|
catch (RuntimeException e) {
|
||||||
e.printStackTrace();
|
throw new EnhancementException( "Failed to enhance class " + className, e );
|
||||||
log.unableToBuildEnhancementMetamodel( safeClassName );
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue