[jboss-jira] [JBoss JIRA] Closed: (LOGTOOL-14) Validate constuctors for exceptions

James Perkins (JIRA) jira-events at lists.jboss.org
Sat Apr 9 22:02:33 EDT 2011


     [ https://issues.jboss.org/browse/LOGTOOL-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins closed LOGTOOL-14.
--------------------------------

    Resolution: Done


Fixed on commit https://github.com/jamezp/jboss-logging-tools/commit/4881d446e81c63469d799d44b8b7ebb2af76ebb1

> Validate constuctors for exceptions
> -----------------------------------
>
>                 Key: LOGTOOL-14
>                 URL: https://issues.jboss.org/browse/LOGTOOL-14
>             Project: Log Tool
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>            Reporter: James Perkins
>            Assignee: James Perkins
>             Fix For: 1.0.0.Beta6
>
>
> When constructing exceptions it will be better to send error/warning messages when the proper constructor does not exist rather than relying on the compiler to fail. Send a warning method if the default constructor is used, but there is a message parameter being passed. Generate an error message if no constructors match and there is no default constructor.
> Also if there is no String only constructor, but there is a String, Throwable constructor (in any order) pass null to the Throwable parameter.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list