From: aclement Date: Fri, 28 Jul 2006 13:17:57 +0000 (+0000) Subject: bug151978: testcase (commented out) X-Git-Tag: pre_pr_153572~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68c36e3ac9b5fc031a956800158aee15b0d44301;p=aspectj.git bug151978: testcase (commented out) --- 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 { + public T create(Class theObjectType, Object[] +theParameters); +} + +class MessageFactory implements IObjectFactory{ + public T create(Class theObjectType, Object[] +theParameters) { + return null; + } +} + +class Main { + public static void main(String[] args) { + IErrorMessage message = new MessageFactory().create(IErrorMessage.class, +new Object[]{"Foo","Bar"}); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java index 111800bef..bf959aacc 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -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");} diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml index 94026f753..83e57e87f 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -245,4 +245,9 @@ + + + + + \ No newline at end of file