Author: pete.muir(a)jboss.org
Date: 2009-12-02 16:56:18 -0500 (Wed, 02 Dec 2009)
New Revision: 5196
Modified:
core/trunk/porting-package/src/main/java/org/jboss/weld/tck/BeansImpl.java
Log:
Trivial to check for a proxy without refering to core (make Porting package less dependent
on core code)
Modified: core/trunk/porting-package/src/main/java/org/jboss/weld/tck/BeansImpl.java
===================================================================
--- core/trunk/porting-package/src/main/java/org/jboss/weld/tck/BeansImpl.java 2009-12-02
21:55:41 UTC (rev 5195)
+++ core/trunk/porting-package/src/main/java/org/jboss/weld/tck/BeansImpl.java 2009-12-02
21:56:18 UTC (rev 5196)
@@ -1,7 +1,6 @@
package org.jboss.weld.tck;
import org.jboss.jsr299.tck.spi.Beans;
-import org.jboss.weld.util.Proxies;
/**
* Implements the Beans SPI for the TCK specifically for the JBoss RI.
@@ -16,7 +15,7 @@
public boolean isProxy(Object instance)
{
- return Proxies.isProxy(instance);
+ return instance.getClass().getName().indexOf("_$$_javassist_") > 0;
}
}
Show replies by date