Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6425743C5 for ; Tue, 5 Jul 2011 02:49:32 +0000 (UTC) Received: (qmail 66409 invoked by uid 500); 5 Jul 2011 02:49:31 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 66143 invoked by uid 500); 5 Jul 2011 02:49:30 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 66134 invoked by uid 99); 5 Jul 2011 02:49:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 02:49:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 02:49:27 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 8C04C48D10; Tue, 5 Jul 2011 02:49:05 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 51472] New: Bugin ? in BeanELResolver.getMethod() Date: Tue, 05 Jul 2011 02:49:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Servlet & JSP API X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: friedhelm.kuehn@cms-it-services.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org 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.kuehn@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-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org