Bug 158272

Summary: false error message on member introduced via ITD
Product: [Tools] AspectJ Reporter: Vladimir Borkovkin <vborkovkin>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.5.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.