tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1237334 - /tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
Date Sun, 29 Jan 2012 16:39:26 GMT
Author: markt
Date: Sun Jan 29 16:39:26 2012
New Revision: 1237334

URL: http://svn.apache.org/viewvc?rev=1237334&view=rev
Log:
No need to load class to determine if it is an annotation.

Modified:
    tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java?rev=1237334&r1=1237333&r2=1237334&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java Sun Jan 29 16:39:26 2012
@@ -2016,6 +2016,12 @@ public class ContextConfig implements Li
             return;
         }
 
+        if ((javaClass.getAccessFlags() &
+                org.apache.tomcat.util.bcel.Constants.ACC_ANNOTATION) > 0) {
+            // Skip annotations.
+            return;
+        }
+
         // No choice but to load the class
         String className = javaClass.getClassName();
 



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


Mime
View raw message