https://bz.apache.org/bugzilla/show_bug.cgi?id=65390
Bug ID: 65390
Summary: Problem in the code generated by jasper
Product: Tomcat 9
Version: 9.0.48
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 37908
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37908&action=edit
Minimum Sample
We make heavy use of JSP-Taglibs, both java-based and tag-file-based.
Since Version 9.0.48 there is a Problem when using a combination of the
following:
* A java-based tagfile which implements
"javax.servlet.jsp.tagext.TryCatchFinally"
* A regular tag-file with "scriptless" body content
* A JSP-Include directive
With the minimum sample provided, Jasper generates an inner class "Helper"
which uses wrong variable names.
We have noticed, that Jasper 9.0.48 adds a suffix to many variables, which
9.0.46 does not.
This is most likely the cause.
The attached minimum sample compiles with Jasper 9.0.46 und ist broken with
9.0.48.
I have also attached the generated java-files for quick comparison of the
generated code.
=======
The error is:
[...]Failing_jsp.java:254: error: cannot find symbol
if (_jspx_meth_st_005ftagwithbody_005f1(_jspx_parent, _jspx_page_context,
_jspx_push_body_count_st_005fwrapper_005f0))
^
symbol: variable _jspx_push_body_count_st_005fwrapper_005f0
location: class Failing_jsp.Helper
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]