diff options
author | aclement <aclement> | 2004-02-25 11:14:32 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-02-25 11:14:32 +0000 |
commit | fbc0aa305ea367e5fbeb99acf9907ae3a155f16a (patch) | |
tree | 1bc9275ebe1b24ca93f33ab92e1819b0aa2eb9d5 /tests/ajcTests.xml | |
parent | 5d3620130376b1356934f87483fa3686aeb51429 (diff) | |
download | aspectj-fbc0aa305ea367e5fbeb99acf9907ae3a155f16a.tar.gz aspectj-fbc0aa305ea367e5fbeb99acf9907ae3a155f16a.zip |
Fix for Bugzilla Bug 51320
ClasscastException on concretization of if(false)
(i.e. you can't use if/target/args/cflow/cflowbelow/this in deow - you get an error if you try)
Diffstat (limited to 'tests/ajcTests.xml')
-rw-r--r-- | tests/ajcTests.xml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index 6b7f15050..5f2210e34 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -7183,5 +7183,31 @@ title="Polymorphic ITD fails in CVS HEAD (From ajdt 1.1.6)"> <compile files="OverloadedITDNPE.java" /> </ajc-test> + + <ajc-test dir="bugs" pr="51320" + title="ClasscastException on concretization of if(false)"> + <compile files="DecwClassCastException.java"> + + <!-- These are the illegal PCDs against a deow --> + <message kind="error" line="27" text="if() pointcut designator cannot be used"/> + <message kind="error" line="29" text="if() pointcut designator cannot be used"/> + + <message kind="error" line="31" text="cflow() pointcut designator cannot be used"/> + <message kind="error" line="33" text="cflow() pointcut designator cannot be used"/> + + <message kind="error" line="35" text="cflowbelow() pointcut designator cannot be used"/> + <message kind="error" line="37" text="cflowbelow() pointcut designator cannot be used"/> + + <message kind="error" line="39" text="this() pointcut designator cannot be used"/> + <message kind="error" line="41" text="this() pointcut designator cannot be used"/> + + <message kind="error" line="43" text="target() pointcut designator cannot be used"/> + <message kind="error" line="45" text="target() pointcut designator cannot be used"/> + + <message kind="error" line="47" text="args() pointcut designator cannot be used"/> + <message kind="error" line="49" text="args() pointcut designator cannot be used"/> + + </compile> + </ajc-test> </suite> |