This post originated from an RSS feed registered with Java Buzz
by Oliver Burn.
Original Post: NetBeans bug or feature?
Feed Title: Oliver's Blog
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Contains the rantings of me. The thoughts are all personal and do not reflect at all on the companies I work for. (mumble: damn lawyers!)
One of the things I enjoy about developing Checkstyle is that I get to find out all sorts of bizarre things. Olivier Pourny is working on upgrading the Checkstyle plug-in for NetBeans to support release 3.1 (of Checkstyle).
The implementation of Checkstyle loads a configuration file for package name mapping. It loads the file using the method ClassLoader.getResourceAsStream(String).
Originally Checkstyle was using the parameter "checkstyle_packages.xml", which will locate the file in the default package. It turns out that under NetBeans this is not valid and the resource will not be loaded. It is documented here.
To accommodate NetBeans the location of the file have been moved. But since the original code works in plug-ins for Eclipse and jEdit, is this a bug or a feature? I tend to favour the former explanation.