OPENJPA-529 cloning configuration before running enhancer

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@632462 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2008-02-29 22:16:30 +00:00
parent 9ece24ade3
commit 527b09ce6e
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ public class ManagedClassSubclasser {
Set<Class> 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 {