Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359332

Summary: NPE in AjBuildManager.java:528 after non-Java/AJ file was renamed
Product: [Tools] AspectJ Reporter: Andrew Swan <aswan>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: aclement
Version: unspecified   
Target Milestone: 1.6.12   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrew Swan CLA 2011-09-29 00:22:08 EDT
Build Identifier: 

Upon using Eclipse's "Rename Resource" dialog to rename my project's "src/main/resources/META-INF/spring/email.properties" file to "scheduler.properties" in the same directory, Eclipse displayed the "AspectJ Internal Compiler Error" dialog with this stack trace: 

java.io.FileNotFoundException
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.copyResourcesFromFile(AjBuildManager.java:528)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.copyResourcesToDestination(AjBuildManager.java:466)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:363)
 ... e error: FileNotFoundException thrown: /Users/aswan/projects/foo/src/main/resources/META-INF/spring/email.properties (No such file or directory)

Reproducible: Couldn't Reproduce

Steps to Reproduce:
N/A
Comment 1 Andrew Swan CLA 2011-09-29 00:23:03 EDT
Sorry, forgot to add the build ID, which is I20110613-1736.
Comment 2 Andrew Clement CLA 2011-09-29 12:35:00 EDT
guard on the FileNotFoundException - lets not choke when this happens