This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 5563b4e Follow up to BZ 63781 fix. Restore explicit isPublic check.
5563b4e is described below
commit 5563b4e541902577238f2871ac47709cead1a5aa
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Oct 4 11:46:58 2019 +0100
Follow up to BZ 63781 fix. Restore explicit isPublic check.
---
java/javax/el/Util.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/javax/el/Util.java b/java/javax/el/Util.java
index 1c7073a..eb7509a 100644
--- a/java/javax/el/Util.java
+++ b/java/javax/el/Util.java
@@ -543,7 +543,7 @@ class Util {
*/
static Method getMethod(Class<?> type, Object base, Method m) {
JreCompat jreCompat = JreCompat.getInstance();
- if (m == null || jreCompat.canAcccess(base, m)) {
+ if (m == null || (Modifier.isPublic(type.getModifiers()) &&
jreCompat.canAcccess(base, m))) {
return m;
}
Class<?>[] inf = type.getInterfaces();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]