aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs163/pr252285
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-28 00:40:20 +0000
committeraclement <aclement>2008-10-28 00:40:20 +0000
commite2fac0e58679db78ef8ce62e9e2945b5e3a5a696 (patch)
tree29223e89b9b96c3f9abeffaba05eef64530f93ea /tests/bugs163/pr252285
parent6f955f1680d2622538cbded6bbe9e70e3468b0f5 (diff)
downloadaspectj-e2fac0e58679db78ef8ce62e9e2945b5e3a5a696.tar.gz
aspectj-e2fac0e58679db78ef8ce62e9e2945b5e3a5a696.zip
252285: tests
Diffstat (limited to 'tests/bugs163/pr252285')
-rw-r--r--tests/bugs163/pr252285/Bridged.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs163/pr252285/Bridged.java b/tests/bugs163/pr252285/Bridged.java
new file mode 100644
index 000000000..94633e105
--- /dev/null
+++ b/tests/bugs163/pr252285/Bridged.java
@@ -0,0 +1,31 @@
+import java.lang.reflect.Method;
+import java.util.*;
+
+interface Super<R extends Number> {
+}
+
+aspect X {
+ private T Super<T>.getterA;
+}
+
+
+public class Bridged implements Super<Integer> {
+
+ // Print BRIDGE status of all getter* methods
+ public static void main(String[] argv) {
+ Method[] ms = Bridged.class.getMethods();
+ List results = new ArrayList();
+ for (int i = 0; i < ms.length; i++) {
+ if (ms[i].getName().indexOf("getter")!=-1) {
+
+results.add(ms[i].getName()+"()"+ms[i].getReturnType().getName()+ " isBridged?"+((ms[i].getModifiers() & 0x0040) != 0));
+ }
+ }
+ Collections.sort(results);
+ for (Iterator iterator = results.iterator(); iterator.hasNext();) {
+ String entry = (String) iterator.next();
+ System.out.println(entry);
+ }
+ }
+}
+