From: aclement Date: Wed, 30 Mar 2011 19:08:32 +0000 (+0000) Subject: 338175: coping better with bad code X-Git-Tag: V1_6_12M1~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b322ba8aece6db9ddab83fdaa87baa29f7c8527;p=aspectj.git 338175: coping better with bad code --- diff --git a/tests/bugs1612/pr338175/pack1/Aspect.java b/tests/bugs1612/pr338175/pack1/Aspect.java new file mode 100644 index 000000000..6e042ee2d --- /dev/null +++ b/tests/bugs1612/pr338175/pack1/Aspect.java @@ -0,0 +1,10 @@ +package pack1; +import pack2.Java; +import pack2.Java2; +public aspect Aspect { + public static final class Java.ITIT { + public static final java.util.List X = null; + public static final int X() { return 9; } } + public static final class Java2.ITIT { + public static final java.util.List X2 = null; + public static final int X2() { return 9; } }} diff --git a/tests/bugs1612/pr338175/pack2/Java.java b/tests/bugs1612/pr338175/pack2/Java.java new file mode 100644 index 000000000..c32e970e7 --- /dev/null +++ b/tests/bugs1612/pr338175/pack2/Java.java @@ -0,0 +1,2 @@ +package pack2; +public class Java {} diff --git a/tests/bugs1612/pr338175/pack2/Java2.java b/tests/bugs1612/pr338175/pack2/Java2.java new file mode 100644 index 000000000..41ef75c8e --- /dev/null +++ b/tests/bugs1612/pr338175/pack2/Java2.java @@ -0,0 +1,2 @@ +package pack2; +public class Java2 {} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 55aa6d3bb..5af06a3cd 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testITIT_338175() { + runTest("itit"); + } + public void testThrowsClause_292239() { runTest("throws clause"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index 943b4f28a..f32b5497e 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,13 @@ + + + + + + +