aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/bridgeMethods/Number.java
diff options
context:
space:
mode:
authoraclement <aclement>2004-11-30 17:43:50 +0000
committeraclement <aclement>2004-11-30 17:43:50 +0000
commit4d1c2948a2f18012cd49dbe8e3a32b1a863d4d45 (patch)
tree46a5c36fc674dba59ee56f88e38f1e9d8296a345 /tests/java5/bridgeMethods/Number.java
parentcc251667ab8afaad4809643ea3760fe17e9c5607 (diff)
downloadaspectj-4d1c2948a2f18012cd49dbe8e3a32b1a863d4d45.tar.gz
aspectj-4d1c2948a2f18012cd49dbe8e3a32b1a863d4d45.zip
Part of 72766: Bridge methods - we now do the right thing if we see one (i.e. we ignore it as a source of join points)
Diffstat (limited to 'tests/java5/bridgeMethods/Number.java')
-rw-r--r--tests/java5/bridgeMethods/Number.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/java5/bridgeMethods/Number.java b/tests/java5/bridgeMethods/Number.java
new file mode 100644
index 000000000..1a866ec19
--- /dev/null
+++ b/tests/java5/bridgeMethods/Number.java
@@ -0,0 +1,6 @@
+public class Number implements Comparable<Number> {
+ private int i;
+ public Number(int i) { this.i = i; }
+ public int getValue() { return i;}
+ public int compareTo(Number that) { return this.getValue() - that.getValue(); }
+}