Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#474 JavadocMethod: Checkstyle doesn't found exceptions from superclasses

release_1.0
open
nobody
5
2014-02-09
2007-03-07
Niels
No

I get a checkstyle error, when I use the check "JavadocMethod". The error says that the class-information for an exception couldn't be found. Is use the current version 4.3
The error occurs if you have a class a.ClassWithExceptions which has a
protected static innerclass MyException.

If you use this in a subclass b.ClassWithCheckstyleProblem you will get the
problem.

I attached a ziped eclipse-project which demonstrate the error. You could unzip it and call on commandline

java com.puppycrawl.tools.checkstyle.Main -c check_config.xml -r src

Best regards
Niels Stargardt

Discussion

  • Niels
    Niels
    2007-03-07

    Eclipse project with files which are shows the problem.

     
    Attachments
  • Mike Perham
    Mike Perham
    2007-07-09

    Logged In: YES
    user_id=3114
    Originator: NO

    We are seeing this also. It makes 4.3 unusable for us. 4.1 does not seem to have this problem.

     
  • Logged In: YES
    user_id=171218
    Originator: NO

    We have that bug here with 4.4 too. It seems the error is in the class AbstractTypeAwareCheck, method tryLoadClass, line 260. It fails when trying to load an exception (using resolveClass, line 240) if that exception is an inner class.

    Error from Eclipse:

    Got an exception - java.lang.RuntimeException: Unable to get class information for @throws tag 'JCO.Exception'.

     
  • Roman Ivanov
    Roman Ivanov
    2013-12-09

    • summary: Checkstyle doesn't found exceptions from superclasses --> JavadocMethod: Checkstyle doesn't found exceptions from superclasses
    • Group: --> release_1.0
     
  • Roman Ivanov
    Roman Ivanov
    2014-02-06

    • labels: Core Framework --> Core Framework, JavaDoc