Project: Tomcat
Bug 50726 Jasper can generate uncompilable source code if genStringAsCharArray is turned on
Reported: 2011-02-07 08:14:03 | Status: resolved fixed

Our jsp pages are compiled at build time. If I turn on genStringAsCharArray optimization switch, in some cases there will be longer lines in the generated java code than the javac compiler can process. It provides the following error message: [javac] Compiling 1609 source files to d:\...\jspc\classes [javac] d:\...\jspc\src\org\apache\jsp\WEB_002dINF\..._005fAPP\pages\termsconditions\TermsAndConditions_005fms_005fMY_jsp.java:96: constant string too long

Files changed in fix:
java/org/apache/jasper/compiler/Generator.java