https://issues.apache.org/bugzilla/show_bug.cgi?id=44877
Summary: ClassCastException due to bad TagHandlerPool name
generation of two different tags
Product: Tomcat 5
Version: 5.5.26
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=21857)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21857)
Small Eclipse 3.3 WST project
The two different tags below will have the same TagHandlerPool name in the
generated JSP. This will lead to a ClassCastException when accessing the JSP at
runtime.
<bug:hello_world/>
<bug:hello world="true"/>
-------------------
Top of stacktrace :
java.lang.ClassCastException: fr.illod.tomcat.bug.taglib.HelloWorldTag
org.apache.jsp.index_jsp._jspx_meth_bug_005fhello_005f0(index_jsp.java:115)
org.apache.jsp.index_jsp._jspService(index_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
...
--------------
The error seems to come from the "createTagHandlerPoolName" method in
org.apache.jasper.compiler.Generator.java
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]