[ https://jira.terracotta.org/jira//browse/CDV-248?page=all ]
Hung Huynh closed CDV-248. -------------------------- verified > Can't Compile Java 5 source in JSP with Tomcat 5.5 > -------------------------------------------------- > > Key: CDV-248 > URL: https://jira.terracotta.org/jira//browse/CDV-248 > Project: Community Development > Issue Type: Bug > Components: DSO:L1 > Environment: Tomcat 5.5.23, Java 1.5.0_09 > Reporter: Ron Bodkin > Assigned To: Hung Huynh > Fix For: trunk-nightly > > > Our application uses Java 5 syntax in JSPs and is hitting problems when > running with Terracotta but works normally. For example this code: > HashMap<String,Long> times = > (HashMap<String,Long>)request.getAttribute("timings"); > long totalTime = System.currentTimeMillis() - times.remove("total time"); > Results in a compiler error: > An error occurred at line: 35 in the jsp file: /footer.jsp > Generated servlet error: > The operator - is undefined for the argument type(s) long, Object > If I load a JSP on Tomcat without TC, then restart with TC it works fine, > i.e., the bug is solely when compiling the JSP. Eugene believes that the TC > bootjar has lost the generic parameter information javac needs so it doesn't > know that times.remove is a Long - it has only the raw type so it thinks it's > an Object. > Work-around options (to be tested): > * plug in ant to compile JSPs forking javac and set the bootstrap path to the > uninstrumented classes > * precompile JSPs -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.terracotta.org/jira//secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
