Summary: | ClasscastException on concretization of if(false) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Eric Bodden <eric> | ||||
Component: | Compiler | Assignee: | Andrew Clement <aclement> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | unspecified | ||||||
Target Milestone: | 1.2 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Eric Bodden
2004-02-07 12:26:00 EST
Created attachment 7721 [details]
Aspect
additional comments: 1.) The object "advice" is of type Checker, which is _not_ a subtype of Advice. 2.) I do realize that the declare warning statement is not necessarily supposed to work with an if pointcut. Though a decent error should be given. It would be good to improve the error handling here for 1.2 if we can. Marked with target = 1.2 for now pending investigation. Fix checked in. As per the discussion on the list, the use of PCDs that may have dynamic residue is policed and you will get an error message if you try to use them in deow statements. C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs>ajc DecwClassCastException.java C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:27 if () pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:29 if () pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:31 cflow() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:33 cflow() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:35 cflowbelow() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:37 cflowbelow() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:39 this() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:41 this() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:43 target() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:45 target() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:47 args() pointcut designator cannot be used in declare statement C:\Eclipse\212\eclipse\aspectj_ws\tests\bugs\DecwClassCastException.java:49 args() pointcut designator cannot be used in declare statement 12 errors The line number in the error is always the line number of the declare statement. |