diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr109728.java | 14 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 2 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs150/pr109728.java b/tests/bugs150/pr109728.java new file mode 100644 index 000000000..5287087b0 --- /dev/null +++ b/tests/bugs150/pr109728.java @@ -0,0 +1,14 @@ +public class pr109728 { + + public static void main(String[]argv) { + new pr109728().m().clone(); + } + + int[] m() { return null; } +} + + + +aspect X { + before(): call(* *(..)) {} +} diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index dd59979fb..c6d3edfa9 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -439,6 +439,8 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("raw and generic type conversion with itd cons"); } + public void testUnableToBuildShadows_pr109728() { runTest("Unable to build shadows");} + // helper methods..... public SyntheticRepository createRepos(File cpentry) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 5f696d89f..7d89c1dac 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -4775,4 +4775,8 @@ </run> </ajc-test> + <ajc-test dir="bugs150" title="Unable to build shadows"> + <compile files="pr109728.java" options="-1.5"/> + </ajc-test> + </suite>
\ No newline at end of file |