]> source.dussan.org Git - aspectj.git/commitdiff
bug151978: testcase (commented out)
authoraclement <aclement>
Fri, 28 Jul 2006 13:17:57 +0000 (13:17 +0000)
committeraclement <aclement>
Fri, 28 Jul 2006 13:17:57 +0000 (13:17 +0000)
tests/bugs153/pr151978/IMessage.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
tests/src/org/aspectj/systemtest/ajc153/ajc153.xml

diff --git a/tests/bugs153/pr151978/IMessage.java b/tests/bugs153/pr151978/IMessage.java
new file mode 100644 (file)
index 0000000..efedcb5
--- /dev/null
@@ -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"});
+  }
+}
index 111800bef9bd8838373bd506ba87808d83d1374b..bf959aaccc1a90d61609a31d7421cc09e8395fc9 100644 (file)
@@ -19,9 +19,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
-   public void testMissingLineNumbersInStacktraceBefore_pr145442() { runTest("missing line numbers in stacktrace before");}
-   public void testMissingLineNumbersInStacktraceAfter_pr145442() { runTest("missing line numbers in stacktrace after");}
-   public void testMissingLineNumbersInStacktraceAround_pr145442() { runTest("missing line numbers in stacktrace around");}
+  //public void testGenericsProblem_pr151978() { runTest("generics problem");}
+  public void testMissingLineNumbersInStacktraceBefore_pr145442() { runTest("missing line numbers in stacktrace before");}
+  public void testMissingLineNumbersInStacktraceAfter_pr145442() { runTest("missing line numbers in stacktrace after");}
+  public void testMissingLineNumbersInStacktraceAround_pr145442() { runTest("missing line numbers in stacktrace around");}
   // public void testArgnamesAndJavac_pr148381() { runTest("argNames and javac");}
   // public void testCFlowXMLAspectLTW_pr149096() { runTest("cflow xml concrete aspect"); }
   // public void testAmbiguousBinding_pr121805() { runTest("ambiguous binding");}
index 94026f753eef10db7cad4617caa915f140fc8181..83e57e87f5442b5e9833ebc1dcd389ef30f4dcee 100644 (file)
       </compile>
     </ajc-test>
     
+    <ajc-test dir="bugs153/pr151978" title="generics problem">
+      <compile files="IMessage.java" options="-1.5">
+      </compile>
+    </ajc-test>
+    
 </suite>
\ No newline at end of file