Bug 37746 - JspC.setJspFiles() uses space as a delimiter
Summary: JspC.setJspFiles() uses space as a delimiter
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 5.5.9
Hardware: All All
: P4 minor (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
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.