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
This commit is contained in:
Michael Dick 2008-03-02 21:29:56 +00:00
parent 13fec1a7e9
commit 3351b0c4a4
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ public class ManagedClassSubclasser {
Set<Class> unspecified = null; Set<Class> unspecified = null;
for (Iterator iter = classes.iterator(); iter.hasNext(); ) { for (Iterator iter = classes.iterator(); iter.hasNext(); ) {
final Class cls = (Class) iter.next(); 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() { enhancer.setBytecodeWriter(new BytecodeWriter() {
public void write(BCClass bc) throws IOException { public void write(BCClass bc) throws IOException {