diff options
author | aclement <aclement> | 2009-03-18 17:04:34 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-03-18 17:04:34 +0000 |
commit | 029749c2958eb1db537cfa70475fec7a8b1802ec (patch) | |
tree | 10ed416d7905fbe114454afeb9674326a1673570 /weaver5 | |
parent | 2b9081418949961b2aa76542d61c9c802c81a516 (diff) | |
download | aspectj-029749c2958eb1db537cfa70475fec7a8b1802ec.tar.gz aspectj-029749c2958eb1db537cfa70475fec7a8b1802ec.zip |
268419: testcode: dynamic proxies and genericspre268419
Diffstat (limited to 'weaver5')
-rw-r--r-- | weaver5/java5-testsrc/$Proxy1.java | 28 | ||||
-rw-r--r-- | weaver5/java5-testsrc/GenericService.java | 17 | ||||
-rw-r--r-- | weaver5/java5-testsrc/MessageService.java | 13 |
3 files changed, 58 insertions, 0 deletions
diff --git a/weaver5/java5-testsrc/$Proxy1.java b/weaver5/java5-testsrc/$Proxy1.java new file mode 100644 index 000000000..51cae8b05 --- /dev/null +++ b/weaver5/java5-testsrc/$Proxy1.java @@ -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 index 000000000..87f5c0419 --- /dev/null +++ b/weaver5/java5-testsrc/GenericService.java @@ -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 index 000000000..160aecc21 --- /dev/null +++ b/weaver5/java5-testsrc/MessageService.java @@ -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> { + +} |