Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkstyle 'Unable to get class information for <exception>' #43

Closed
yegor256 opened this issue Apr 21, 2013 · 4 comments
Closed

Checkstyle 'Unable to get class information for <exception>' #43

yegor256 opened this issue Apr 21, 2013 · 4 comments
Assignees

Comments

@yegor256
Copy link
Owner

migrated from Trac, where originally posted by krzysztof.krason on 3-Nov-2011 10:31am

When using Qulice I get error such as:

[ERROR] /src/main/java/com/expinia/quartz/PagingJob.java[62]: Unable to get class information for JobExecutionException. (RedundantThrowsCheck)
[ERROR] /src/main/java/com/expinia/quartz/PagingJob.java[84]: Unable to get class information for JobExecutionException. (RedundantThrowsCheck)
[ERROR] /src/main/java/com/expinia/quartz/RefreshJob.java[61]: Unable to get class information for JobExecutionException. (RedundantThrowsCheck)
[ERROR] /src/main/java/com/expinia/web/GenerateTimeFilter.java[55]: Unable to get class information for ServletException. (RedundantThrowsCheck)
[ERROR] /src/main/java/com/expinia/web/GenerateTimeFilter.java[66]: Unable to get class information for ServletException. (RedundantThrowsCheck)
[ERROR] /src/main/java/com/expinia/web/GenerateTimeFilter.java[90]: Unable to get class information for ServletException. (RedundantThrowsCheck)

The above errors didn't appear in case when checkstyle was used.
Both ServletException and JobExecutionException are of course imported. JobExecutionException (quartz) is in dependency at default scope, ServletException (servlets) is at provided scope.

It appears that there are some missing classpath entries when doing checkstyle.

I'm not sure if it's really Qulice issue, but I think that it would be good to look at it (e.g. create a simple project with servlet dependency), because if the code compiles and has correct throws declarations, it should also pass checkstyle.

@ghost ghost assigned yegor256 Apr 21, 2013
@yegor256
Copy link
Owner Author

migrated from Trac, where originally posted by krzysztof.krason on 3-Nov-2011 10:34am

Moreover, this happens even for inheritDoc:

    /**
     * {@inheritDoc}
     */
    @Override
    public void init(final FilterConfig filterConfig) throws ServletException {
        // nothing to do
    }

The error is reported in the method name line.

@yegor256
Copy link
Owner Author

migrated from Trac, where originally posted by yegor256 on 3-Nov-2011 11:49am

It's a duplicate of #41. We're already working with it.

@yegor256
Copy link
Owner Author

migrated from Trac, where originally posted by yegor256 on 22-Jan-2012 11:39pm

Milestone PROTOTYPE deleted

@yegor256
Copy link
Owner Author

migrated from Trac, where originally posted by yegor on 21-Apr-2013 12:03pm

we moved to Github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant