[jboss-cvs] JBossAS SVN: r58897 - projects/microcontainer/trunk/container/src/main/org/jboss/reflect/plugins/javassist

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 7 07:57:45 EST 2006


Author: adrian at jboss.org
Date: 2006-12-07 07:57:43 -0500 (Thu, 07 Dec 2006)
New Revision: 58897

Modified:
   projects/microcontainer/trunk/container/src/main/org/jboss/reflect/plugins/javassist/JavassistReflectionFactory.java
Log:
[JBMICROCONT-133] - Remove the magic accessor usage until we figure out
how to do this across JDKs.

Modified: projects/microcontainer/trunk/container/src/main/org/jboss/reflect/plugins/javassist/JavassistReflectionFactory.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/reflect/plugins/javassist/JavassistReflectionFactory.java	2006-12-07 03:49:22 UTC (rev 58896)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/reflect/plugins/javassist/JavassistReflectionFactory.java	2006-12-07 12:57:43 UTC (rev 58897)
@@ -76,6 +76,7 @@
    {
       ClassPool pool = JavassistTypeInfoFactoryImpl.pool;
       final CtClass result = pool.makeClass(JavassistMethod.class.getName() + counter.increment());
+      /* TODO JBMICROCONT-133 figure out how to do this on all JDKs
       try
       {
          CtClass magic = pool.get("sun.reflect.MagicAccessorImpl");
@@ -83,7 +84,7 @@
       }
       catch (NotFoundException ignored)
       {
-      }
+      }*/
       result.addInterface(pool.get(JavassistMethod.class.getName()));
       
       CtConstructor constructor = new CtConstructor(null, result);




More information about the jboss-cvs-commits mailing list