From 485527ae0872028121f29eb5b7fd27f75efb5b4a Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Wed, 15 Aug 2007 19:49:12 +0000 Subject: [PATCH] removed debugging code git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566315 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/enhance/ManagedClassSubclasser.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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 265b6ac66..e3fce2f3a 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 @@ -19,8 +19,6 @@ package org.apache.openjpa.enhance; import java.io.IOException; -import java.security.AccessController; -import java.security.PrivilegedActionException; import java.util.Map; import java.util.HashMap; import java.util.Collection; @@ -30,7 +28,6 @@ import java.util.ArrayList; import java.util.Iterator; 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.BytecodeWriter; 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 map, Class cls, List subs, List ints) 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 it was already defined, don't put it in the map, // but do set the metadata accordingly.