tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1297213 - /tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java
Date Mon, 05 Mar 2012 20:20:00 GMT
Author: markt
Date: Mon Mar  5 20:20:00 2012
New Revision: 1297213

URL: http://svn.apache.org/viewvc?rev=1297213&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=52725
Use constant rather than hard-coded package name since package name is
meant to be configurable.

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java?rev=1297213&r1=1297212&r2=1297213&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java Mon Mar  5 20:20:00 2012
@@ -26,6 +26,7 @@ import java.util.Vector;
 import java.util.jar.JarFile;
 import java.util.zip.ZipEntry;
 
+import org.apache.jasper.Constants;
 import org.apache.jasper.JasperException;
 import org.apache.jasper.JspCompilationContext;
 import org.xml.sax.Attributes;
@@ -738,7 +739,7 @@ public class JspUtil {
 
         index = path.indexOf(WEB_INF_TAGS);
         if (index != -1) {
-            className = "org.apache.jsp.tag.web.";
+            className = Constants.TAG_FILE_PACKAGE_NAME + ".web";
             begin = index + WEB_INF_TAGS.length();
         } else {
             index = path.indexOf(META_INF_TAGS);
@@ -756,7 +757,8 @@ public class JspUtil {
     }
 
     private static String getClassNameBase(String urn) {
-        StringBuilder base = new StringBuilder("org.apache.jsp.tag.meta.");
+        StringBuilder base =
+                new StringBuilder(Constants.TAG_FILE_PACKAGE_NAME + ".meta.");
         if (urn != null) {
             base.append(makeJavaPackage(urn));
             base.append('.');



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


Mime
View raw message