aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-09-19 15:15:06 +0000
committeraclement <aclement>2005-09-19 15:15:06 +0000
commit5f096e0aa004a180ae2a67774574d84b32548b6c (patch)
tree343af212cd5e061203c33711c9493ba3575afce1 /tests
parenteb39196938a01554927e21e8fcf95c25021530c6 (diff)
downloadaspectj-5f096e0aa004a180ae2a67774574d84b32548b6c.tar.gz
aspectj-5f096e0aa004a180ae2a67774574d84b32548b6c.zip
pr109728: testcase
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/pr109728.java14
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml4
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