]> source.dussan.org Git - aspectj.git/commitdiff
237419: testcode
authoraclement <aclement>
Tue, 17 Jun 2008 18:06:24 +0000 (18:06 +0000)
committeraclement <aclement>
Tue, 17 Jun 2008 18:06:24 +0000 (18:06 +0000)
tests/bugs161/pr237419/problem/Generic.java [new file with mode: 0644]
tests/bugs161/pr237419/problem/GenericService.java [new file with mode: 0644]
tests/bugs161/pr237419/problem/Specific.java [new file with mode: 0644]
tests/bugs161/pr237419/problem/SpecificService.java [new file with mode: 0644]
tests/bugs161/pr237419/problem/aspect/AnyAspect.java [new file with mode: 0644]

diff --git a/tests/bugs161/pr237419/problem/Generic.java b/tests/bugs161/pr237419/problem/Generic.java
new file mode 100644 (file)
index 0000000..cc024ea
--- /dev/null
@@ -0,0 +1,5 @@
+package problem;
+
+public class Generic<T> {
+
+}
diff --git a/tests/bugs161/pr237419/problem/GenericService.java b/tests/bugs161/pr237419/problem/GenericService.java
new file mode 100644 (file)
index 0000000..2a216e4
--- /dev/null
@@ -0,0 +1,5 @@
+package problem;
+
+public abstract class GenericService<T extends Generic<?>> {
+  protected abstract T update(T current);
+}
diff --git a/tests/bugs161/pr237419/problem/Specific.java b/tests/bugs161/pr237419/problem/Specific.java
new file mode 100644 (file)
index 0000000..162c0ab
--- /dev/null
@@ -0,0 +1,5 @@
+package problem;
+
+public class Specific extends Generic<String> {
+
+}
diff --git a/tests/bugs161/pr237419/problem/SpecificService.java b/tests/bugs161/pr237419/problem/SpecificService.java
new file mode 100644 (file)
index 0000000..9cd3b16
--- /dev/null
@@ -0,0 +1,12 @@
+package problem;
+
+public class SpecificService extends GenericService<Specific> {
+  @Override
+  protected Specific update(Specific current) {
+    return null;
+  }
+
+  public static void main(String[] args) {
+    new SpecificService();
+  }
+}
diff --git a/tests/bugs161/pr237419/problem/aspect/AnyAspect.java b/tests/bugs161/pr237419/problem/aspect/AnyAspect.java
new file mode 100644 (file)
index 0000000..8966109
--- /dev/null
@@ -0,0 +1,8 @@
+package problem.aspect;
+
+import org.aspectj.lang.annotation.Aspect;
+
+//@Aspect public class AnyAspect {
+@Aspect
+public class AnyAspect {
+}