From 029749c2958eb1db537cfa70475fec7a8b1802ec Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 18 Mar 2009 17:04:34 +0000 Subject: [PATCH] 268419: testcode: dynamic proxies and generics --- weaver5/java5-testsrc/$Proxy1.java | 28 +++++++++++++++++++++++ weaver5/java5-testsrc/GenericService.java | 17 ++++++++++++++ weaver5/java5-testsrc/MessageService.java | 13 +++++++++++ 3 files changed, 58 insertions(+) create mode 100644 weaver5/java5-testsrc/$Proxy1.java create mode 100644 weaver5/java5-testsrc/GenericService.java create mode 100644 weaver5/java5-testsrc/MessageService.java 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 { + 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 { + +} -- 2.39.5