From: aclement Date: Tue, 11 Mar 2008 16:08:44 +0000 (+0000) Subject: 201748: new testcase, currently commented out X-Git-Tag: V1_6_0rc1~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a64e7efe65ed2e50969a0270e124e822c742eee;p=aspectj.git 201748: new testcase, currently commented out --- diff --git a/tests/bugs160/pr201748/Foo.java b/tests/bugs160/pr201748/Foo.java new file mode 100644 index 000000000..8faf23eaf --- /dev/null +++ b/tests/bugs160/pr201748/Foo.java @@ -0,0 +1,18 @@ +aspect MA { + Factory AnyClass.myfactory = Factory.create(); +} + +class Factory { + public static Factory[] create() { + return null; + } +} + +class AnyClass { +} + +public class Foo { + public static void main(String []argv) { + new AnyClass(); + } +} \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java index 29fd87422..3b4837c81 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java @@ -21,6 +21,7 @@ import junit.framework.Test; public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectH1.6.0rc1 + //public void testITDWithArray_pr201748() { runTest("itd with array");} public void testBadMessage() { runTest("incorrect itd error with generics");} public void testBadMessage2() { runTest("incorrect itd error with generics - 2");} public void testHasMethodAnnoValueInt_various() { runTest("hasmethod anno value - I");} diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml index bfc1c4c46..bf539f57b 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml @@ -4,6 +4,12 @@ + + + + + +