tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler TagBeginGenerator.java
Date Wed, 26 Sep 2001 02:37:13 GMT
craigmcc    01/09/25 19:37:13

  Modified:    jasper/src/share/org/apache/jasper/compiler
                        TagBeginGenerator.java
  Log:
  Fix generated code for custom tag attributes of type Object, which are
  required to accept a literal String value.  Patch supplied by Kin-Man
  Chung <Kin-Man.Chung@sun.com>
  
  PR: Bugzilla #3707
  Submitted by:	Hans Bergsten <hans@gefionsoftware.com>
  
  Revision  Changes    Path
  1.16      +1 -1      jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TagBeginGenerator.java
  
  Index: TagBeginGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TagBeginGenerator.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- TagBeginGenerator.java	2001/09/07 00:18:49	1.15
  +++ TagBeginGenerator.java	2001/09/26 02:37:13	1.16
  @@ -301,7 +301,7 @@
           } else if (c == Long.class) {
               return "new Long(" + Long.valueOf(s).toString() + "l)";
           } else if (c == Object.class) {
  -            return "new String(" + s + ")";
  +            return "new String(" + writer.quoteString(s) + ")";
   	} else {
   	    return "(" + c.getName() + 
   		")JspRuntimeLibrary.getValueFromPropertyEditorManager(" +
  
  
  

Mime
View raw message