]> source.dussan.org Git - aspectj.git/commitdiff
268419: testcode: dynamic proxies and generics pre268419
authoraclement <aclement>
Wed, 18 Mar 2009 17:04:34 +0000 (17:04 +0000)
committeraclement <aclement>
Wed, 18 Mar 2009 17:04:34 +0000 (17:04 +0000)
weaver5/java5-testsrc/$Proxy1.java [new file with mode: 0644]
weaver5/java5-testsrc/GenericService.java [new file with mode: 0644]
weaver5/java5-testsrc/MessageService.java [new file with mode: 0644]

diff --git a/weaver5/java5-testsrc/$Proxy1.java b/weaver5/java5-testsrc/$Proxy1.java
new file mode 100644 (file)
index 0000000..51cae8b
--- /dev/null
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Contributors 
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Andy Clement - initial API and implementation
+ *******************************************************************************/
+import java.io.Serializable;
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Proxy;
+
+public class $Proxy1 extends Proxy implements MessageService {
+
+       protected $Proxy1(InvocationHandler arg0) {
+               super(arg0);
+       }
+
+       public Object get1(Long t) {
+               return null;
+       }
+
+       public Object get2(Serializable s) {
+               return null;
+       }
+}
diff --git a/weaver5/java5-testsrc/GenericService.java b/weaver5/java5-testsrc/GenericService.java
new file mode 100644 (file)
index 0000000..87f5c04
--- /dev/null
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Contributors 
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Andy Clement - initial API and implementation
+ *******************************************************************************/
+import java.io.Serializable;
+
+public interface GenericService<T extends Serializable> {
+       Object get1(T t);
+
+       Object get2(Serializable s);
+}
diff --git a/weaver5/java5-testsrc/MessageService.java b/weaver5/java5-testsrc/MessageService.java
new file mode 100644 (file)
index 0000000..160aecc
--- /dev/null
@@ -0,0 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Contributors 
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Andy Clement - initial API and implementation
+ *******************************************************************************/
+public interface MessageService extends GenericService<Long> {
+
+}