You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/10/04 10:47:19 UTC
[tomcat] branch master updated: Follow up to BZ 63781 fix. Restore
explicit isPublic check.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 3697c60 Follow up to BZ 63781 fix. Restore explicit isPublic check.
3697c60 is described below
commit 3697c6030ceaef3d82871dbb4111014df820ccb0
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 db921a8..ade70b3 100644
--- a/java/javax/el/Util.java
+++ b/java/javax/el/Util.java
@@ -541,7 +541,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org