tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler TagLibraryInfoImpl.java
Date Wed, 16 Oct 2002 17:19:19 GMT
luehe       2002/10/16 10:19:19

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        TagLibraryInfoImpl.java
  Log:
  Fixed Bugtraq 4763825: TagAttributeInfo.getTypeName returns null for a
  static attribute.
  
  Revision  Changes    Path
  1.18      +10 -4     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java
  
  Index: TagLibraryInfoImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- TagLibraryInfoImpl.java	12 Oct 2002 18:55:29 -0000	1.17
  +++ TagLibraryInfoImpl.java	16 Oct 2002 17:19:19 -0000	1.18
  @@ -466,9 +466,9 @@
   
       TagAttributeInfo createAttribute(TreeNode elem) {
           String name = null;
  +        String type = null;
           boolean required = false, rtexprvalue = false, reqTime = false,
   	    isFragment = false;
  -        String type = null;
           
           Iterator list = elem.findChildren();
           while (list.hasNext()) {
  @@ -502,6 +502,12 @@
               }
           }
           
  +	if (!rtexprvalue) {
  +	    // According to JSP spec, for static values (those determined at
  +	    // translation time) the type is fixed at java.lang.String.
  +	    type = "java.lang.String";
  +	}
  +
           return new TagAttributeInfo(name, required, type, rtexprvalue,
   				    isFragment);
       }
  
  
  

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


Mime
View raw message