Bug 158272 - false error message on member introduced via ITD
Summary: false error message on member introduced via ITD
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.5.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 04:50 EDT by Vladimir Borkovkin CLA
Modified: 2006-10-17 08:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Borkovkin CLA 2006-09-22 04:50:48 EDT
Compiler reports error on member introduced via inter-type declaration
There is aspect
public aspect OpLogAspect {
	public Object IDomain.outer;
...
)
in java editor on line 
Object dmn = ((IDomain)emp.getAddress()).outer;
"outer" is marked as error "outer cannot be resolved or is not a field"
When program is run, all works fine, 'outer' have correct value
Comment 1 Helen Beeken CLA 2006-09-22 05:48:40 EDT
Have you tried opening the class which contains the call "Object dmn = ((IDomain)emp.getAddress()).outer;" in the AspectJ/Java Editor? (Right click on the class in the package explorer > Open With > AspectJ/Java Editor). The java editor doesn't understand ITD's whereas the AspectJ/Java one does.
Comment 2 Andrew Clement CLA 2006-09-25 09:19:59 EDT
get to the bottom of this for 1.5.3 - likely to be use of Java editor for AJ code as Helen says.
Comment 3 Andrew Clement CLA 2006-10-03 09:13:27 EDT
please can you confirm you have tried Helen's suggestion in comment #1?  Is it simply that you are using the java editor for the file - which we know does not understand ITDs??
Comment 4 Andrew Clement CLA 2006-10-17 08:30:08 EDT
suspect it is the use of the java editor for aspects.  please reopen if you think you are still having problems.