Bug 70237 - Renaming of project throws exception
Summary: Renaming of project throws exception
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.1.11   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-16 11:25 EDT by Eric Bodden CLA
Modified: 2004-07-27 03:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Bodden CLA 2004-07-16 11:25:19 EDT
When renaming an aspectj-enabled project, I get reproducably an error such as:

Problems encountered while moving resources.
  Copy successful, but problems occurred removing old resources
    Could not delete: F:\Coding\Eclipse Workspace\adjt-test\.generated.ajsym.
Comment 1 Eric Bodden CLA 2004-07-16 11:26:44 EDT
Now I am also getting:

Problems encountered while moving resources.
  Copy successful, but problems occurred removing old resources
    Could not delete: F:\Coding\Eclipse Workspace\adjt-test2\.generated.ajsym.
    Could not delete: F:\Coding\Eclipse Workspace\adjt-test2\.generated.lst.
Comment 2 Andrew Clement CLA 2004-07-16 11:33:59 EDT
and the floodgates open...  Matt, Luzius: I presume this will be related to us
generating those files but not telling eclipse.  So when you attempt an
operation like rename it finds these things it knew nothing about?
Comment 3 Eric Bodden CLA 2004-07-16 11:36:56 EDT
sorry for ruining your weekend ;-)
Comment 4 Luzius Meisser CLA 2004-07-21 04:23:43 EDT
Happened because AJDE did not close the filestream after writing the .ajsym 
file. Fixed now though not sure about the .lst file problem since it did not 
happen to me.
Comment 5 Mik Kersten CLA 2004-07-21 12:40:33 EDT
Luzius: did you make the fix in AJDT?  I'm wondering if AJDE needs to handle 
the stream closing more gracefully for the browser and other IDEs.
Comment 6 Andrew Clement CLA 2004-07-21 12:46:27 EDT
Hi Mik.  I fixed it in AJDE.
Comment 7 Andrew Clement CLA 2004-07-27 03:12:48 EDT
fixed in 1.1.12