Since upgrading from M3 to M6 I have started getting these warnings when running checkstyle with the ‘code-quality’ plugin:
Unable to get class information for <custom exception in the same package>
I get this as part of the RedundantThrowsCheck. It seems that the problem has to do with the classpath given to checkstyle. The RedundantThrowsCheck itself includes the note that “The classpath should be configured to locate the class information. The classpath configuration is dependent on the mechanism used to invoke Checkstyle.”
The problem seems to be that I need to include the compiled classes to the checkstyle classpath. This seems to sum up the solution: http://sourceforge.net/tracker/index.php?func=detail&aid=1656084&group_id=29721&atid=397078
How can I put the compiled classes in the checkstyle classpath?