Bug 37746 - JspC.setJspFiles() uses space as a delimiter
JspC.setJspFiles() uses space as a delimiter
Status: RESOLVED FIXED
Product: Tomcat 5
Classification: Unclassified
Component: Jasper
5.5.9
All All
: P4 minor (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2005-12-01 23:16 UTC by Eric Hedstr
Modified: 2005-12-02 07:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Hedstr 2005-12-01 23:16:53 UTC
According to its comment, setJspFiles() takes a comma-separated list of files,
but the StringTokenizer it uses separates by comma or space:
  StringTokenizer tok = new StringTokenizer(jspFiles, " ,");

Either the space should be removed from " ," (my preference, to allow filenames
with spaces), or the comment should be fixed.
Comment 1 Yoav Shapira 2005-12-02 16:31:37 UTC
Good catch, thanks for reporting this.  I'll remove the space from
StringTokenizer, as there's no reason to require it.
Comment 2 Yoav Shapira 2005-12-02 16:50:57 UTC
Fixed.