aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
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"});
+ }
+}