HHH-10078 - Enforce sychronization of non thread-safe method Enhancer.enhance()
(cherry picked from commit 03801b62ec
)
This commit is contained in:
parent
e3c6c02178
commit
60c4c9846a
|
@ -81,7 +81,7 @@ public class Enhancer {
|
|||
*
|
||||
* @throws EnhancementException Indicates a problem performing the enhancement
|
||||
*/
|
||||
public byte[] enhance(String className, byte[] originalBytes) throws EnhancementException {
|
||||
public synchronized byte[] enhance(String className, byte[] originalBytes) throws EnhancementException {
|
||||
try {
|
||||
final CtClass managedCtClass = classPool.makeClassIfNew( new ByteArrayInputStream( originalBytes ) );
|
||||
enhance( managedCtClass );
|
||||
|
|
Loading…
Reference in New Issue