]> source.dussan.org Git - aspectj.git/commitdiff
279983: test
authoraclement <aclement>
Fri, 12 Jun 2009 22:33:02 +0000 (22:33 +0000)
committeraclement <aclement>
Fri, 12 Jun 2009 22:33:02 +0000 (22:33 +0000)
tests/bugs165/pr279983/X.java [new file with mode: 0644]

diff --git a/tests/bugs165/pr279983/X.java b/tests/bugs165/pr279983/X.java
new file mode 100644 (file)
index 0000000..db4f4a0
--- /dev/null
@@ -0,0 +1,25 @@
+
+public class X implements SelectAction<Long, User>{
+       public void setSelected(User user){
+               //overriden version
+       }
+       public static void main(String[] args){
+               new X().setSelectedId(1l);
+       }
+}
+
+interface SelectAction<I, T> {
+       public void setSelectedId(I id);
+       public void setSelected(T object);
+}
+
+aspect SelectActionAspect {
+       public void SelectAction<I, T>.setSelected(T object){
+               //do nothing
+       }
+       public void SelectAction<I, T>.setSelectedId(I id){
+               setSelected(null);
+       }
+}
+
+class User {}