mirror of https://github.com/apache/openjpa.git
removed debugging code
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ae341d308
commit
485527ae08
|
@ -19,8 +19,6 @@
|
||||||
package org.apache.openjpa.enhance;
|
package org.apache.openjpa.enhance;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedActionException;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
@ -30,7 +28,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import org.apache.openjpa.conf.OpenJPAConfiguration;
|
import org.apache.openjpa.conf.OpenJPAConfiguration;
|
||||||
import org.apache.openjpa.lib.util.J2DoPrivHelper;
|
|
||||||
import org.apache.openjpa.lib.util.JavaVersions;
|
import org.apache.openjpa.lib.util.JavaVersions;
|
||||||
import org.apache.openjpa.lib.util.BytecodeWriter;
|
import org.apache.openjpa.lib.util.BytecodeWriter;
|
||||||
import org.apache.openjpa.lib.util.Localizer;
|
import org.apache.openjpa.lib.util.Localizer;
|
||||||
|
@ -172,20 +169,10 @@ public class ManagedClassSubclasser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void write(final BCClass bc, PCEnhancer enhancer,
|
private static void write(BCClass bc, PCEnhancer enhancer,
|
||||||
Map<Class, byte[]> map, Class cls, List subs, List ints)
|
Map<Class, byte[]> map, Class cls, List subs, List ints)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
// #####
|
|
||||||
java.io.File dir = org.apache.openjpa.lib.util.Files.getPackageFile(
|
|
||||||
new java.io.File("subs"), bc.getPackageName(), true);
|
|
||||||
try {
|
|
||||||
AccessController.doPrivileged(J2DoPrivHelper.bCClassWrite(bc,
|
|
||||||
new java.io.File(dir, bc.getClassName() + ".class")));
|
|
||||||
} catch (PrivilegedActionException pae) {
|
|
||||||
throw (IOException) pae.getException();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bc == enhancer.getManagedTypeBytecode()) {
|
if (bc == enhancer.getManagedTypeBytecode()) {
|
||||||
// if it was already defined, don't put it in the map,
|
// if it was already defined, don't put it in the map,
|
||||||
// but do set the metadata accordingly.
|
// but do set the metadata accordingly.
|
||||||
|
|
Loading…
Reference in New Issue