incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1350132 - /sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/JDTCompiler.java
Date Thu, 14 Jun 2012 08:55:40 GMT
Author: cziegeler
Date: Thu Jun 14 08:55:40 2012
New Revision: 1350132

URL: http://svn.apache.org/viewvc?rev=1350132&view=rev
Log:
SLING-2505 : Don't load class for dependency check

Modified:
    sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/JDTCompiler.java

Modified: sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/JDTCompiler.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/JDTCompiler.java?rev=1350132&r1=1350131&r2=1350132&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/JDTCompiler.java
(original)
+++ sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/JDTCompiler.java
Thu Jun 14 08:55:40 2012
@@ -76,7 +76,6 @@ public class JDTCompiler extends org.apa
         final String targetClassName =
             ((packageName.length() != 0) ? (packageName + ".") : "")
                     + ctxt.getServletClassName();
-        final ClassLoader classLoader = ctxt.getClassLoader();
         String[] fileNames = new String[] {sourceFile};
         String[] classNames = new String[] {targetClassName};
         final ArrayList problemList = new ArrayList();
@@ -188,7 +187,7 @@ public class JDTCompiler extends org.apa
                         }
                         String resourceName =
                             className.replace('.', '/') + ".class";
-                        is = classLoader.getResourceAsStream(resourceName);
+                        is = ctxt.getClassLoader().getResourceAsStream(resourceName);
                         if (is != null) {
                             byte[] classBytes;
                             byte[] buf = new byte[8192];
@@ -229,7 +228,7 @@ public class JDTCompiler extends org.apa
                     }
                     String resourceName = result.replace('.', '/') + ".class";
                     InputStream is =
-                        classLoader.getResourceAsStream(resourceName);
+                        ctxt.getClassLoader().getResourceAsStream(resourceName);
                     return is == null;
                 }
 



Mime
View raw message