myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r1416912 - /myfaces/extensions/scripting/trunk/extscript-core-root/extscript-cdi/src/main/java/org/apache/myfaces/extensions/scripting/cdi/core/CDIThrowAwayClassloader.java
Date Tue, 04 Dec 2012 12:19:08 GMT
Author: werpu
Date: Tue Dec  4 12:19:07 2012
New Revision: 1416912

URL: http://svn.apache.org/viewvc?rev=1416912&view=rev
Log:
EXTSCRIPT-183 removing an npe

Modified:
    myfaces/extensions/scripting/trunk/extscript-core-root/extscript-cdi/src/main/java/org/apache/myfaces/extensions/scripting/cdi/core/CDIThrowAwayClassloader.java

Modified: myfaces/extensions/scripting/trunk/extscript-core-root/extscript-cdi/src/main/java/org/apache/myfaces/extensions/scripting/cdi/core/CDIThrowAwayClassloader.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-core-root/extscript-cdi/src/main/java/org/apache/myfaces/extensions/scripting/cdi/core/CDIThrowAwayClassloader.java?rev=1416912&r1=1416911&r2=1416912&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-core-root/extscript-cdi/src/main/java/org/apache/myfaces/extensions/scripting/cdi/core/CDIThrowAwayClassloader.java
(original)
+++ myfaces/extensions/scripting/trunk/extscript-core-root/extscript-cdi/src/main/java/org/apache/myfaces/extensions/scripting/cdi/core/CDIThrowAwayClassloader.java
Tue Dec  4 12:19:07 2012
@@ -60,13 +60,13 @@ public class CDIThrowAwayClassloader ext
     public Class<?> loadClass(String className) throws ClassNotFoundException
     {
         ClassResource res = (ClassResource) WeavingContext.getInstance().getResource(className);
-        boolean tainted = res.isTainted();
+
         Class clazz = _delegate.loadClass(className);
         if (res == null)
         {
             return clazz;
         }
-
+        boolean tainted = res.isTainted();
         Annotation[] anns = clazz.getAnnotations();
         boolean cdiAnnotation = false;
         //@Named required without named no cdi bean



Mime
View raw message