Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 99913 invoked from network); 3 Mar 2003 17:07:59 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Mar 2003 17:07:59 -0000 Received: (qmail 12504 invoked by uid 97); 3 Mar 2003 17:09:39 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 12497 invoked from network); 3 Mar 2003 17:09:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Mar 2003 17:09:38 -0000 Received: (qmail 99082 invoked by uid 500); 3 Mar 2003 17:07:47 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 99069 invoked from network); 3 Mar 2003 17:07:47 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Mar 2003 17:07:47 -0000 Received: (qmail 12489 invoked by uid 50); 3 Mar 2003 17:09:27 -0000 Date: 3 Mar 2003 17:09:27 -0000 Message-ID: <20030303170927.12488.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 17608] New: - Jasper cannot compile JSP files which use JDK 1.4 asserts. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17608 Jasper cannot compile JSP files which use JDK 1.4 asserts. Summary: Jasper cannot compile JSP files which use JDK 1.4 asserts. Product: Tomcat 4 Version: 4.0.6 Final Platform: PC OS/Version: Windows XP Status: NEW Severity: Minor Priority: Other Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: spneville@hotmail.com We have some unit tests for a tag library that we have written. One of the JSP files uses an assert statement. Jasper fails to compile the JSP because there is no way to pass the source 1.4 flag to it. We are running in a 1.4 VM, so we would expect Jasper to be able to compile JSP files using the 1.4 compiler. We are aware of workarounds (and also of the strange use of asserts in a JSP). However, it still seems that Jasper should support this. Here is part of the exception: com.cysive.is.ServerException: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred between lines: 8 and 51 in the jsp file: /jsp/select-test.jsp Generated servlet error: C:\projects\InteractionServer\server\default\live\war\Jetty_0_0_0_0_6080__tagli b -test_webchannel\jsp\select_0002dtest$jsp.java:111: Class org.apache.jsp.assert not found. assert bean == favoriteGameSelections; ^ An error occurred between lines: 8 and 51 in the jsp file: /jsp/select-test.jsp Generated servlet error: C:\projects\InteractionServer\server\default\live\war\Jetty_0_0_0_0_6080__tagli b -test_webchannel\jsp\select_0002dtest$jsp.java:111: Invalid declaration. assert bean == favoriteGameSelections; ^ 2 errors, 1 warning --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org