Review of bug #197104

Jan Lahoda <[email protected]> Wed, 30 Mar 2011 00:33:13 +0200
Newsgroups gmane.comp.java.netbeans.reviewers
Message-ID <[email protected]>
http://netbeans.org/bugzilla/show_bug.cgi?id=197104

Annotation processors that use 
Filer.getResource(StandardLocation.CLASS_PATH,
"", <relative-path>) will not get the resource even if it exists. From 
the user's point this may happen for action registrations.

The root cause is that when the complete relative path is constructed 
from the (empty) package name and the given (partial) relative path, the 
result starts with '/' and consequently the resource cannot be resolved. 
The fix is to prevent the complete relative path start with a slash in 
this case.

The patch is:
http://hg.netbeans.org/jet-main/rev/451b9268c762

Thanks for review,
     Jan