aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-28 13:17:57 +0000
committeraclement <aclement>2006-07-28 13:17:57 +0000
commit68c36e3ac9b5fc031a956800158aee15b0d44301 (patch)
tree4f4ebf1ed39287349e9cc92bc30785843bb4f23e /tests/bugs153
parentd692fc2a7de7acd11233efdab8b5bbeb98777b44 (diff)
downloadaspectj-68c36e3ac9b5fc031a956800158aee15b0d44301.tar.gz
aspectj-68c36e3ac9b5fc031a956800158aee15b0d44301.zip
bug151978: testcase (commented out)
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr151978/IMessage.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs153/pr151978/IMessage.java b/tests/bugs153/pr151978/IMessage.java
new file mode 100644
index 000000000..efedcb5ac
--- /dev/null
+++ b/tests/bugs153/pr151978/IMessage.java
@@ -0,0 +1,27 @@
+public interface IMessage {
+ void publish();
+}
+
+
+interface IErrorMessage extends IMessage{
+ StackTraceElement[] getStackTrace();
+}
+
+interface IObjectFactory<E> {
+ public <T extends E> T create(Class<T> theObjectType, Object[]
+theParameters);
+}
+
+class MessageFactory implements IObjectFactory<IMessage>{
+ public <T extends IMessage> T create(Class<T> theObjectType, Object[]
+theParameters) {
+ return null;
+ }
+}
+
+class Main {
+ public static void main(String[] args) {
+ IErrorMessage message = new MessageFactory().create(IErrorMessage.class,
+new Object[]{"Foo","Bar"});
+ }
+}