You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2001/01/12 05:27:42 UTC
BugRat Report #748 has been filed.
Bug report #748 has just been filed.
You can view the report at the following URL:
<http://znutar.cortexity.com/BugRatViewer/ShowReport/748>
REPORT #748 Details.
Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: low
Severity: non-critical
Confidence: public
Environment:
Release: 3.2.1
JVM Release: 1.2.2
Operating System: Redhat
OS Release: 6.2
Platform: linux
Synopsis:
java.io.IOException shouldn't be imported
Description:
Jasper (3.2.1 and from CVS, 12/1/2001) imports java.io.IOException by default. This seems to go against the spec, p45, where it talks about "import" page directives:
The default import list is java.lang.*, javax.servlet.*,
javax.servlet.jsp.* and javax.servlet.http.*.
JRun3.0 follows the spec, and therefore some JSP pages are not portable from Tomcat3.2 to JRun3.0.
FYI, the relevant code is src/share/org/apache/jasper/Constants.java:
/**
* These classes/packages are automatically imported by the
* generated code.
*
* FIXME: Need to trim this to what is there in PR2 and verify
* with all our generators -akv.
*/
public static final String[] STANDARD_IMPORTS = {
"javax.servlet.*", "javax.servlet.http.*", "javax.servlet.jsp.*",
"javax.servlet.jsp.tagext.*",
"java.io.PrintWriter", "java.io.IOException", "java.io.FileInputStream",
"java.io.ObjectInputStream", "java.util.Vector",
"org.apache.jasper.runtime.*", "java.beans.*",
"org.apache.jasper.JasperException"
};
Thanks :)
--Jeff