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
Title: BugRat Report # 748

BugRat Report # 748

Project: Jasper Release: 3.2.1
Category: Bug Report SubCategory: New Bug Report
Class: swbug State: received
Priority: low Severity: non-critical
Confidence: public

Submitter: Jeff Turner ( [EMAIL PROTECTED] )
Date Submitted: Jan 11 2001, 10:27:41 CST
Responsible: Z_Tomcat Alias ( [EMAIL PROTECTED] )

Synopsis:
java.io.IOException shouldn't be imported
Environment: (jvm, os, osrel, platform)
1.2.2, Redhat, 6.2, linux

Additional Environment Description:

Report 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

How To Reproduce:
null

View this report online...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to