https://issues.apache.org/bugzilla/show_bug.cgi?id=51472
Bug #: 51472
Summary: Bugin ? in BeanELResolver.getMethod()
Product: Tomcat 7
Version: 7.0.16
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
BeanResolver.getMethod() starts with:
if (m == null || Modifier.isPublic(type.getModifiers())) {
return m;
}
That tests method existence and whether Class has public modifier.
I think that public Modifier of Method should be tested instead/or
additionally.
So:
if (m == null || Modifier.isPublic(m.getModifiers())) {
return m;
}
Or:
if (m == null || Modifier.isPublic(type.getModifiers()
&& Modifier.isPublic(m.getModifiers())) {
return m;
}
Right ?
--
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]