This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 4c12d98 Follow up to BZ 63781 fix. Restore explicit isPublic check. 4c12d98 is described below commit 4c12d986c045befc5676c8842b764ea100b5db46 Author: Mark Thomas <ma...@apache.org> 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 e626e73..bac56c5 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org