[jboss-jira] [JBoss JIRA] Created: (LOGTOOL-14) Validate constuctors for exceptions
James Perkins (JIRA)
jira-events at lists.jboss.org
Mon Apr 4 13:50:33 EDT 2011
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