[
http://jira.codehaus.org/browse/MPCHECKSTYLE-20?page=comments#action_72242 ]
Maurice le Rutte commented on MPCHECKSTYLE-20:
----------------------------------------------
I have the same problem, but with a single, FQN'ed exception. Works fine in
Eclipse 3.2 with plugin, but fails in Ant.
[checkstyle] Running Checkstyle 4.2 on 11 files
[checkstyle]
H:\projects\attic-cards\src\main\com\cuhka\attic\renderer\RendererFactory.java:0:
Got an exception - java.lang.RuntimeException: Unable to get class information
for @throws tag 'com.cuhka.attic.renderer.RendererFactoryException'.
Code:
/**
* Get the renderer for a figure.
*
* @param figureClass figure class to get renderer for
* @return renderer class
* @throws com.cuhka.attic.renderer.RendererFactoryException on error
*/
@SuppressWarnings("unchecked")
public synchronized FigureRenderer getRenderer(Class<? extends Figure>
figureClass)
throws com.cuhka.attic.renderer.RendererFactoryException {
}
> Unable to get class information for custom exceptions
> -----------------------------------------------------
>
> Key: MPCHECKSTYLE-20
> URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-20
> Project: maven-checkstyle-plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: maven-1.0-rc2
> Reporter: Ryan Sonnek
>
> checkstyle reports an error "Unable to get class information" for custom
> exceptions within the same project. it is able to load exceptions that are
> listed as dependencies for the project, but not for other exceptions. one
> workaround is to only use throws Exception in the signiture, but that's
> really a hack.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira