openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1602746 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AbstractDecoratorInjectionTarget.java
Date Sun, 15 Jun 2014 18:21:34 GMT
Author: rmannibucau
Date: Sun Jun 15 18:21:33 2014
New Revision: 1602746

URL: http://svn.apache.org/r1602746
Log:
OWB-970 forgot to ensure classloader is not null - shouldn't happen excepted in very very
weird app decorating JVM classes

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AbstractDecoratorInjectionTarget.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AbstractDecoratorInjectionTarget.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AbstractDecoratorInjectionTarget.java?rev=1602746&r1=1602745&r2=1602746&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AbstractDecoratorInjectionTarget.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/AbstractDecoratorInjectionTarget.java
Sun Jun 15 18:21:33 2014
@@ -45,6 +45,10 @@ public class AbstractDecoratorInjectionT
         // create proxy subclass
         Class<T> classToProxy = annotatedType.getJavaClass();
         ClassLoader classLoader = classToProxy.getClassLoader();
+        if (classLoader == null)
+        {
+            classLoader = Thread.currentThread().getContextClassLoader();
+        }
 
         proxySubClass = webBeansContext.getSubclassProxyFactory().createImplementedSubclass(classLoader,
classToProxy);
 



Mime
View raw message