From 3351b0c4a42ffc8e602b5c77650f760b78935b94 Mon Sep 17 00:00:00 2001 From: Michael Dick Date: Sun, 2 Mar 2008 21:29:56 +0000 Subject: [PATCH] OPENJPA-529 cloning configuration before running enhancer git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@632850 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/enhance/ManagedClassSubclasser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openjpa-kernel-5/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java b/openjpa-kernel-5/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java index d0365e201..6da06d3ac 100644 --- a/openjpa-kernel-5/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java +++ b/openjpa-kernel-5/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java @@ -116,7 +116,8 @@ public class ManagedClassSubclasser { Set unspecified = null; for (Iterator iter = classes.iterator(); iter.hasNext(); ) { final Class cls = (Class) iter.next(); - final PCEnhancer enhancer = new PCEnhancer(conf, cls); + final PCEnhancer enhancer = + new PCEnhancer((OpenJPAConfiguration) conf.clone(), cls); enhancer.setBytecodeWriter(new BytecodeWriter() { public void write(BCClass bc) throws IOException {