Author: dallen6
Date: 2010-04-22 09:43:49 -0400 (Thu, 22 Apr 2010)
New Revision: 6150
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java
Log:
Fixed problem with wrong classloader usage for javax packages
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java 2010-04-22
12:20:07 UTC (rev 6149)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java 2010-04-22
13:43:49 UTC (rev 6150)
@@ -84,7 +84,7 @@
public ProxyFactory(Class<?> proxiedBeanType)
{
this.beanType = proxiedBeanType;
- if (beanType.getName().startsWith("java."))
+ if (beanType.getName().startsWith("java"))
{
this.classLoader = this.getClass().getClassLoader();
this.protectionDomain = this.getClass().getProtectionDomain();
@@ -148,7 +148,7 @@
public Class<T> getProxyClass()
{
String proxyClassName = beanType.getName() + "_$$_Weld" +
getProxyNameSuffix();
- if (proxyClassName.startsWith("java."))
+ if (proxyClassName.startsWith("java"))
{
proxyClassName = proxyClassName.replaceFirst("java",
"org.jboss.weld");
}
Show replies by date