DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31065>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31065

unused import in jsp code causes failure in jdt compiler

           Summary: unused import in jsp code causes failure in jdt compiler
           Product: Tomcat 5
           Version: 5.5.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


My jsp code includes a common "init.jsp" that in turn imports all my 
packages.  When I upgraded to tomcat 5.5.0, none of my jsp code worked because 
the jdt compiler is much more restrictive.  I found the error and corrected it 
by modifying JDTCOmpiler.java as follows:

*** jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java    Sun 
Sep  5 14:41:20 2004
--- jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java.orig
        Sun Sep  5 14:41:05 2004
***************
*** 263,270 ****
                       CompilerOptions.GENERATE);

          settings.put(CompilerOptions.OPTION_ReportDeprecation,

                       CompilerOptions.IGNORE);

-         settings.put(CompilerOptions.OPTION_ReportUnusedImport,

-                      CompilerOptions.IGNORE);         

  

          if (ctxt.getOptions().getJavaEncoding() != null) {

              settings.put(CompilerOptions.OPTION_Encoding,

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to