diff options
author | aclement <aclement> | 2004-02-26 09:56:40 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-02-26 09:56:40 +0000 |
commit | a8c17de491cf0c062c50e7a7488d5074c3f30673 (patch) | |
tree | c2d0749597f07f7c42c457b49ef3a8f7f107651b /tests/ajcTests.xml | |
parent | 9a29a973f55a157c54b18bcf554a090bb8ef19e3 (diff) | |
download | aspectj-a8c17de491cf0c062c50e7a7488d5074c3f30673.tar.gz aspectj-a8c17de491cf0c062c50e7a7488d5074c3f30673.zip |
Fix for preventing the use of if/target/this/args/cflow/cflowbelow in DeclareSofts.
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 5f2210e34..2081e9e7c 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -7210,4 +7210,30 @@ </compile> </ajc-test> + <ajc-test dir="bugs" pr="51320" + title="ClasscastException on concretization of if(false)"> + <compile files="DeclareSoftDynamicPCDs.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> |