#78 Fully-qualified @throws claimed unused

release_3.0
closed
Lars Kühne
5
2012-10-10
2002-12-26
Daniel Cox
No

When a method declares that it throws an exception
with the imported name ("SQLException") and then
declares the @throws clause with a fully-qualified name
("java.sql.SQLException"), this is reported as an
unused throws clause. Technically this shouldn't be an
error.

The case of a fully-qualified declaration and an
ambiguous @throws declaration could be considered an
error however.

I did not try the reverse cases where there was no
ambiguity to see if this was also reported incorrectly...

Discussion

  • Lars Kühne
    Lars Kühne
    2002-12-28

    Logged In: YES
    user_id=401384

    I have verified the bug and added a testcase in my local
    sandbox,
    working on the resoltion now.

     
  • Lars Kühne
    Lars Kühne
    2002-12-29

    Logged In: YES
    user_id=401384

    this is now fixed in CVS and will be available with
    Checkstyle 3.0