[jboss-cvs] JBossAS SVN: r106526 - in projects/jboss-reflect/trunk/src: test/java/org/jboss/test/plugins/accessor and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 9 09:14:42 EDT 2010


Author: kabir.khan at jboss.com
Date: 2010-07-09 09:14:41 -0400 (Fri, 09 Jul 2010)
New Revision: 106526

Added:
   projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/SignatureUtil.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorArrayUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryTestSuite.java
Modified:
   projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/ReflectSignatureKey.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/GeneratedMemberFactoryTestSuite.java
   projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorTestMemberFactory.java
Log:
[JBREFLECT-134] Tests for generating accessors for introspection class infos

Modified: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/ReflectSignatureKey.java
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/ReflectSignatureKey.java	2010-07-09 11:40:40 UTC (rev 106525)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/ReflectSignatureKey.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -31,7 +31,7 @@
  */
 public class ReflectSignatureKey extends SignatureKey
 {
-   protected ReflectSignatureKey(String name, TypeInfo[] typeInfos)
+   public ReflectSignatureKey(String name, TypeInfo[] typeInfos)
    {
       super(name, typeInfos);
    }

Added: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/SignatureUtil.java
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/SignatureUtil.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/introspection/SignatureUtil.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,88 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.reflect.plugins.introspection;
+
+import org.jboss.reflect.spi.ArrayInfo;
+import org.jboss.reflect.spi.ConstructorInfo;
+import org.jboss.reflect.spi.FieldInfo;
+import org.jboss.reflect.spi.MethodInfo;
+import org.jboss.reflect.spi.PrimitiveInfo;
+import org.jboss.reflect.spi.TypeInfo;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class SignatureUtil
+{
+   public static String getDescriptor(MethodInfo info)
+   {
+      StringBuilder buf = new StringBuilder("(");
+      getParams(buf, info.getParameterTypes());
+      buf.append(")");
+      getDescriptor(buf, info.getReturnType());
+      return buf.toString();
+   }
+   
+   public static String getDescriptor(ConstructorInfo info)
+   {
+      StringBuilder buf = new StringBuilder("(");
+      getParams(buf, info.getParameterTypes());
+      buf.append(")V");
+      return buf.toString();
+   }
+   
+   public static String getDescriptor(FieldInfo info)
+   {
+      StringBuilder buf = new StringBuilder();
+      getDescriptor(buf, info.getType());
+      return buf.toString();
+   }
+   
+   private static void getParams(StringBuilder buf, TypeInfo[] params)
+   {
+      if (params.length == 0)
+         return;
+      for (TypeInfo info : params)
+         getDescriptor(buf, info);
+   }
+   
+   private static void getDescriptor(StringBuilder buf, TypeInfo info)
+   {
+      if (info.isArray())
+      {
+         buf.append("[");
+         getDescriptor(buf, ((ArrayInfo)info).getComponentType());
+         return;
+      }
+      
+      if (info.isPrimitive())
+         if (info == PrimitiveInfo.VOID)
+            buf.append("V");
+         else
+            buf.append(PrimitiveInfo.getPrimativeArrayType(info.getName()));
+      else
+         buf.append("L" + info.getName().replace('.', '/') + ";");
+      
+   }
+}

Modified: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/GeneratedMemberFactoryTestSuite.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/GeneratedMemberFactoryTestSuite.java	2010-07-09 11:40:40 UTC (rev 106525)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/GeneratedMemberFactoryTestSuite.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -45,6 +45,7 @@
       suite.addTest(BytecodeReflectAccessorFactoryTestSuite.suite());
       suite.addTest(JavassistGeneratedMemberAccessorFactoryTestSuite.suite());
       suite.addTest(JavassistReflectAccessorFactoryTestSuite.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryTestSuite.suite());
 
       return suite;
    }

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorArrayUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorArrayUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorArrayUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,54 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorArrayUnitTestCase extends AbstractMemberFactoryArrayUnitTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorArrayUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorArrayUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   @Override
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,68 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.BoxedInterface;
+import org.jboss.test.plugins.accessor.support.PublicBoxedBean;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase extends AbstractMethodFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return new PublicBoxedBean();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return BoxedInterface.class;
+   }
+   
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return ProtectedBoxedBean.getInstance();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedBoxedBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PackageProtectedPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return PackageProtectedPrimitiveBean.getInstance();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PackageProtectedPrimitiveBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PackageProtectedStaticBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PackageProtectedStaticBoxedBean.class;
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PackageProtectedStaticPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PackageProtectedStaticPrimitiveBean.class;
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+   
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,68 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PrimitiveInterface;
+import org.jboss.test.plugins.accessor.support.PublicPrimitiveBean;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase extends AbstractMethodFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return new PublicPrimitiveBean();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PrimitiveInterface.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return ProtectedBoxedBean.getInstance();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedBoxedBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return ProtectedPrimitiveBean.getInstance();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedPrimitiveBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedStaticBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedStaticBoxedBean.class;
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedStaticPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedStaticPrimitiveBean.class;
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return ProtectedBoxedBean.getInstance();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedBoxedBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return ProtectedPrimitiveBean.getInstance();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedPrimitiveBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedStaticBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedStaticBoxedBean.class;
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.ProtectedStaticPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return ProtectedStaticPrimitiveBean.class;
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PublicBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return new PublicBoxedBean();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PublicBoxedBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PublicPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase extends AbstractMethodFieldAndConstructorFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return new PublicPrimitiveBean();
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PublicPrimitiveBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return false;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PublicStaticBoxedBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase(String name)
+   {
+      super(name, false);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PublicStaticBoxedBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,69 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+
+import org.jboss.test.plugins.accessor.support.PublicStaticPrimitiveBean;
+
+
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase extends AbstractMethodAndFieldFactoryTest
+{
+   public static Test suite()
+   {
+      return suite(IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase.class);
+   }
+
+   public IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase(String name)
+   {
+      super(name, true);
+   }
+
+   @Override
+   protected Object createInstance()
+   {
+      return null;
+   }
+
+   @Override
+   protected Class<?> getClazz()
+   {
+      return PublicStaticPrimitiveBean.class;
+   }
+
+   protected boolean isStatic()
+   {
+      return true;
+   }
+
+   @Override
+   protected AbstractTestMemberFactory getTestMemberFactory()
+   {
+      return new IntrospectionGeneratedMemberAccessorTestMemberFactory(isPrimitive);
+   }
+}

Added: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryTestSuite.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryTestSuite.java	                        (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorFactoryTestSuite.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -0,0 +1,72 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.plugins.accessor;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntrospectionGeneratedMemberAccessorFactoryTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Introspection Generated Member Factory Tests");
+
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPublicBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPublicPrimitiveUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPublicStaticBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPublicStaticPrimitiveUnitTestCase.suite());
+      
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryProtectedBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryProtectedPrimitiveUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryProtectedStaticBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryProtectedStaticPrimitiveUnitTestCase.suite());
+      
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedPrimitiveUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPackageProtectedStaticPrimitiveUnitTestCase.suite());
+      
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPrivateBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPrivatePrimitiveUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPrivateStaticBoxedUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPrivateStaticPrimitiveUnitTestCase.suite());
+      
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryPrimitiveInterfaceUnitTestCase.suite());
+      suite.addTest(IntrospectionGeneratedMemberAccessorFactoryBoxedInterfaceUnitTestCase.suite());
+      
+      suite.addTest(IntrospectionGeneratedMemberAccessorArrayUnitTestCase.suite());
+      
+      return suite;
+   }
+
+}

Modified: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorTestMemberFactory.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorTestMemberFactory.java	2010-07-09 11:40:40 UTC (rev 106525)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/plugins/accessor/IntrospectionGeneratedMemberAccessorTestMemberFactory.java	2010-07-09 13:14:41 UTC (rev 106526)
@@ -25,9 +25,11 @@
 import org.jboss.reflect.plugins.accessor.FieldAccessor;
 import org.jboss.reflect.plugins.accessor.MethodAccessor;
 import org.jboss.reflect.plugins.accessor.generated.GeneratedMemberAccessorFactory;
-import org.jboss.reflect.plugins.bytecode.BytecodeConstructorInfo;
-import org.jboss.reflect.plugins.bytecode.BytecodeFieldInfo;
-import org.jboss.reflect.plugins.bytecode.BytecodeMethodInfo;
+import org.jboss.reflect.plugins.introspection.ReflectSignatureKey;
+import org.jboss.reflect.plugins.introspection.SignatureUtil;
+import org.jboss.reflect.spi.ConstructorInfo;
+import org.jboss.reflect.spi.FieldInfo;
+import org.jboss.reflect.spi.MethodInfo;
 
 /**
  * 
@@ -43,19 +45,19 @@
 
    public ConstructorAccessor createConstructor(Class<?> clazz, Class<?>...params) throws Exception
    {
-      BytecodeConstructorInfo info = assertInstanceOf(getConstructor(clazz, params), BytecodeConstructorInfo.class);
-      return GeneratedMemberAccessorFactory.generateConstructorAccessor(GeneratedMemberAccessorFactory.MAGIC_ACCESSOR_IMPL, null, info, info.getDescriptor(), info.getSignatureKey());
+      ConstructorInfo info = getConstructor(clazz, params);
+      return GeneratedMemberAccessorFactory.generateConstructorAccessor(GeneratedMemberAccessorFactory.MAGIC_ACCESSOR_IMPL, null, info, SignatureUtil.getDescriptor(info), new ReflectSignatureKey("<init>", info.getParameterTypes()));
    }
    
    public MethodAccessor createMethod(Class<?> clazz, String name, Class<?>...params) throws Exception
    {
-      BytecodeMethodInfo info = assertInstanceOf(getMethod(clazz, name, params), BytecodeMethodInfo.class);
-      return GeneratedMemberAccessorFactory.generateMethodAccessor(GeneratedMemberAccessorFactory.MAGIC_ACCESSOR_IMPL, null, info, info.getDescriptor(), info.getSignatureKey());
+      MethodInfo info = getMethod(clazz, name, params);
+      return GeneratedMemberAccessorFactory.generateMethodAccessor(GeneratedMemberAccessorFactory.MAGIC_ACCESSOR_IMPL, null, info, SignatureUtil.getDescriptor(info), new ReflectSignatureKey("<init>", info.getParameterTypes()));
    }
    
    public FieldAccessor createField(Class<?> clazz, String name) throws Exception
    {
-      BytecodeFieldInfo info = assertInstanceOf(getField(clazz, name), BytecodeFieldInfo.class);
-      return GeneratedMemberAccessorFactory.generateFieldAccessor(GeneratedMemberAccessorFactory.MAGIC_ACCESSOR_IMPL, null, info, info.getDescriptor());
+      FieldInfo info = getField(clazz, name);
+      return GeneratedMemberAccessorFactory.generateFieldAccessor(GeneratedMemberAccessorFactory.MAGIC_ACCESSOR_IMPL, null, info, SignatureUtil.getDescriptor(info));
    }
 }



More information about the jboss-cvs-commits mailing list