tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1237332 - in /tomcat/trunk/java/org/apache/tomcat/util/bcel: Constants.java classfile/AccessFlags.java
Date Sun, 29 Jan 2012 16:38:46 GMT
Author: markt
Date: Sun Jan 29 16:38:45 2012
New Revision: 1237332

URL: http://svn.apache.org/viewvc?rev=1237332&view=rev
Log:
Restore some previously removed code that is required for fixing
BZ52444. Need to be able to determine if a class is an annotation
without loading the class.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java
    tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java?rev=1237332&r1=1237331&r2=1237332&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java Sun Jan 29 16:38:45 2012
@@ -39,6 +39,10 @@ public interface Constants {
 
   /** One of the access flags for fields, methods, or classes.
    */
+  public static final short ACC_ANNOTATION   = 0x2000;
+
+  /** One of the access flags for fields, methods, or classes.
+   */
   public static final short ACC_ENUM         = 0x4000;
 
   // Applies to classes compiled by new compilers only

Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java?rev=1237332&r1=1237331&r2=1237332&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java Sun Jan 29 16:38:45
2012
@@ -33,4 +33,10 @@ public abstract class AccessFlags implem
     public AccessFlags() {
     }
 
+    /**
+     * @return Access flags of the object aka. "modifiers".
+    */
+    public final int getAccessFlags() {
+        return access_flags;
+    }
 }



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


Mime
View raw message