tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31065] New: - unused import in jsp code causes failure in jdt compiler
Date Sun, 05 Sep 2004 19:58:21 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: dillenbu@uic.edu


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message