tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r730694 - /tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java
Date Fri, 02 Jan 2009 11:05:46 GMT
Author: markt
Date: Fri Jan  2 03:05:45 2009
New Revision: 730694

URL: http://svn.apache.org/viewvc?rev=730694&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
Limit the package test to org.apache.jsp.* rather than org.apache.jsp* to allow use of packages
like org.apache.jspwiki

Modified:
    tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java

Modified: tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java?rev=730694&r1=730693&r2=730694&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java (original)
+++ tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java Fri Jan  2 03:05:45 2009
@@ -122,7 +122,7 @@
             }                              
         }
 
-        if( !name.startsWith(Constants.JSP_PACKAGE_NAME) ) {
+        if( !name.startsWith(Constants.JSP_PACKAGE_NAME + '.') ) {
             // Class is not in org.apache.jsp, therefore, have our
             // parent load it
             clazz = parent.loadClass(name);            



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message