tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r693952 - /tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java
Date Wed, 10 Sep 2008 19:43:24 GMT
Author: markt
Date: Wed Sep 10 12:43:23 2008
New Revision: 693952

URL: http://svn.apache.org/viewvc?rev=693952&view=rev
Log:
Correct access check

Modified:
    tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java

Modified: tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java?rev=693952&r1=693951&r2=693952&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/DefaultInstanceManager.java Wed Sep 10 12:43:23
2008
@@ -350,11 +350,11 @@
         return classLoader.loadClass(className);
     }
 
-    private void checkAccess(Class clazz) {
+    private void checkAccess(Class<?> clazz) {
         if (privileged) return;
-        if (clazz.isAssignableFrom(Filter.class)) {
+        if (Filter.class.isAssignableFrom(clazz)) {
             checkAccess(clazz, restrictedFilters);
-        } else if (clazz.isAssignableFrom(Servlet.class)) {
+        } else if (Servlet.class.isAssignableFrom(clazz)) {
             checkAccess(clazz, restrictedServlets);
         } else {
             checkAccess(clazz, restrictedListeners);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message