Bug 121290

Summary: Incremental Compilation Gave Errors from Missing aop.xml file
Product: [Tools] AspectJ Reporter: Ron Bodkin <rbodkin+LISTS>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ron Bodkin CLA 2005-12-16 17:36:18 EST
I used Eclipse to move an aspect from one package to another in Eclipse (debug -> glassbox.debug). Eclipse changed the package in the source file but didn't move the file. The resulting incremental compilation in AJDT produced 15 error messages like this:

Severity	Description	Resource	In Folder	Location	Creation Time	Id
2	aspect 'debug.TraceRepositories' woven into 'glassbox.track.api.AbstractCompositePerfStatsImpl' must be declared in an aop.xml file.	AbstractCompositePerfStatsImpl.java	glassboxAgent/src/glassbox/track/api		December 16, 2005 2:32:09 PM	1491035
Comment 1 Ron Bodkin CLA 2005-12-16 17:37:49 EST
Actually the refactoring in Eclipse copied the file to the new location but didn't delete it from the old one... Oddly, the file in the new location has the old package and vice versa!
Comment 2 Wes Isberg CLA 2006-05-10 11:12:40 EDT
This works for me.  When I move a .java aspect, everything works.  When I move a .aj aspect, I get an error "compilation unit must end in .java" which at least gives me fair warning.  In closing this, I'm assuming that further work should be handled in the .aj extension support.  Please reopen otherwise.
stalebug