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: dev@tomcat.apache.org
        ReportedBy: friedhelm.ku...@cms-it-services.de
    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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to