[seam-commits] Seam SVN: r9730 - trunk/src/main/org/jboss/seam.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Dec 4 12:25:27 EST 2008


Author: pete.muir at jboss.org
Date: 2008-12-04 12:25:27 -0500 (Thu, 04 Dec 2008)
New Revision: 9730

Modified:
   trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-3758 (might be a regression)

Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java	2008-12-04 16:43:47 UTC (rev 9729)
+++ trunk/src/main/org/jboss/seam/Component.java	2008-12-04 17:25:27 UTC (rev 9730)
@@ -2369,7 +2369,9 @@
 
    public static Class<ProxyObject> createProxyFactory(ComponentType type, final Class beanClass, Collection<Class> businessInterfaces)
    {
-      Set<Class> interfaces = new HashSet<Class>();
+      Set<Class> interfaces = new LinkedHashSet<Class>();
+      interfaces.add(Instance.class);
+      interfaces.add(Proxy.class);
       if ( type.isSessionBean() )
       {
           interfaces.addAll(businessInterfaces);
@@ -2379,17 +2381,7 @@
          interfaces.add(HttpSessionActivationListener.class);
          interfaces.add(Mutable.class);
       }
-      interfaces.add(Instance.class);
-      interfaces.add(Proxy.class);
-
-      ProxyFactory factory = new ProxyFactory()
-      {
-         @Override
-         protected ClassLoader getClassLoader()
-         {
-            return beanClass.getClassLoader();
-         }
-      };
+      ProxyFactory factory = new ProxyFactory();
       factory.setSuperclass( type==JAVA_BEAN ? beanClass : Object.class );
       factory.setInterfaces( interfaces.toArray( new Class[0] ) );
       factory.setFilter(FINALIZE_FILTER);




More information about the seam-commits mailing list