Re: Warning: Redundant throws: 'xxxException' is unchecked exception.

Oliver Burn <[email protected]> Sun, 11 Jul 2010 19:57:36 +1000
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Checkstyle is finding the exception
http://download.oracle.com/docs/cd/E17476_01/javase/1.4.2/docs/api/java/lang/SecurityException.htmland
not seeing yours.

On Wed, Jul 7, 2010 at 23:39, Jeff Mutonho <[email protected]> wrote:

> Anyone out there? Is this a bug that needs to be filed?
>
>
> On Tue, Jul 6, 2010 at 9:48 AM, Jeff Mutonho <[email protected]>wrote:
>
>> Hi there
>>
>> I'm running Checkstyle from Ant, using checkstyle-all-5.0.jar  and a
>> project specific config file. The check for redundant throws is
>> specified as :
>>
>>         <module name="RedundantThrows">
>>             <property name="logLoadErrors" value="true"/>
>>             <property name="suppressLoadErrors" value="true"/>
>>         </module>
>>
>> In my code, there are classes that declare a "throws SecurityException" .
>> SecurityException extends ApplicationException which directly extends
>> java.lang.Exception.
>>
>> The Checkstyle report is reporting a warning which says :
>> "Redundant throws: 'SecurityException' is unchecked exception."
>>
>> Why is Checkstyle reporting a check exception as being an unchecked one?
>>
>>
>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user