From: aclement Date: Fri, 8 Apr 2011 23:19:42 +0000 (+0000) Subject: 342323 X-Git-Tag: V1_6_12M1~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=80ceb419315961eae603911721155dfb560e99dd;p=aspectj.git 342323 --- diff --git a/tests/bugs1612/pr342323/Azpect.java b/tests/bugs1612/pr342323/Azpect.java new file mode 100644 index 000000000..e618f3185 --- /dev/null +++ b/tests/bugs1612/pr342323/Azpect.java @@ -0,0 +1,12 @@ +package ppp; +privileged aspect Azpect { + public void Bean.foo() { + Runnable r = new Runnable() { + public void run() { + System.out.println("aspect foo"); + } + }; + r.run(); + } +} + diff --git a/tests/bugs1612/pr342323/Bean.java b/tests/bugs1612/pr342323/Bean.java new file mode 100644 index 000000000..d1ab95730 --- /dev/null +++ b/tests/bugs1612/pr342323/Bean.java @@ -0,0 +1,11 @@ +package ppp; +public class Bean { + public void m() { + Runnable r = new Runnable() { public void run() { System.out.println("class");}}; + r.run(); + } + public void n() { + Runnable r = new Runnable() { public void run() { System.out.println("class");}}; + r.run(); + } +} diff --git a/tests/bugs1612/pr342323/Runner.java b/tests/bugs1612/pr342323/Runner.java new file mode 100644 index 000000000..71a2b974e --- /dev/null +++ b/tests/bugs1612/pr342323/Runner.java @@ -0,0 +1,14 @@ +package ppp; +public class Runner { + public static void main(String[] argv) { + new Runner().run(); + } + + public void run() { + Bean c = new Bean(); + System.out.println("Calling regular method"); + c.m(); + System.out.println("Calling itd method"); + c.foo(); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 5af06a3cd..3a1156f42 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 testClashingLocalTypes_342323() { + runTest("clashing local types"); + } + public void testITIT_338175() { runTest("itit"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index f32b5497e..d8895fecc 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,19 @@ + + + + + + + + + + + + +