aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/ProgramA.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/generics/itds/bridgeMethods/ProgramA.java')
-rw-r--r--tests/java5/generics/itds/bridgeMethods/ProgramA.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/bridgeMethods/ProgramA.java b/tests/java5/generics/itds/bridgeMethods/ProgramA.java
new file mode 100644
index 000000000..69a39890b
--- /dev/null
+++ b/tests/java5/generics/itds/bridgeMethods/ProgramA.java
@@ -0,0 +1,22 @@
+// Bridge methods.
+
+interface I<N extends Number> {
+ public N methodOne();
+ public N methodTwo();
+}
+
+class Impl<T extends Float> implements I<T> {
+ public T m() { return null;}
+}
+
+public class ProgramA {
+ public static void main(String[]argv) {
+ Impl i = new Impl();
+ i.methodOne();
+ i.methodTwo();
+ }
+}
+
+aspect X {
+ public N Impl<N>.methodTwo() { return null;}
+}