1.1 --- a/javap/src/main/java/sun/tools/javap/MethodData.java Fri Nov 09 21:33:22 2012 +0100
1.2 +++ b/javap/src/main/java/sun/tools/javap/MethodData.java Mon Nov 12 00:07:34 2012 +0100
1.3 @@ -25,8 +25,8 @@
1.4
1.5 package sun.tools.javap;
1.6
1.7 -import java.util.*;
1.8 import java.io.*;
1.9 +import org.apidesign.bck2brwsr.core.JavaScriptBody;
1.10
1.11 import static sun.tools.javap.RuntimeConstants.*;
1.12
1.13 @@ -413,4 +413,13 @@
1.14 public boolean isDeprecated(){
1.15 return isDeprecated;
1.16 }
1.17 +
1.18 + public byte[] findAnnotationData(boolean classRetention) {
1.19 + String n = classRetention ?
1.20 + "RuntimeInvisibleAnnotations" : // NOI18N
1.21 + "RuntimeVisibleAnnotations"; // NOI18N
1.22 + AttrData[] arr = new AttrData[attrs.size()];
1.23 + attrs.copyInto(arr);
1.24 + return ClassData.findAttr(n, arr);
1.25 + }
1.26 }