[jboss-jira] [JBoss JIRA] Resolved: (LOGTOOL-13) Exception constructing methods are not populating the message string
James Perkins (JIRA)
jira-events at lists.jboss.org
Sun Apr 3 18:53:33 EDT 2011
[ https://issues.jboss.org/browse/LOGTOOL-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins resolved LOGTOOL-13.
----------------------------------
Resolution: Done
Fixed on commit https://github.com/jamezp/jboss-logging-tools/commit/15de908c8b70f08139e6625b4d85b6685934f470
> Exception constructing methods are not populating the message string
> --------------------------------------------------------------------
>
> Key: LOGTOOL-13
> URL: https://issues.jboss.org/browse/LOGTOOL-13
> Project: Log Tool
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.0.0.Beta5
> Reporter: David Lloyd
> Assignee: James Perkins
> Priority: Critical
> Fix For: 1.0.0.Beta6
>
>
> ...which sometimes leads to compile errors.
> This input:
> {code:title=InvocationMessages.java}
> // ...
> @Message(id = 3, value = "Null value passed in for parameter %s")
> IllegalArgumentException nullParameter(String param);
> @Message(id = 4, value = "Null value specified for serialized field %s")
> InvalidObjectException nullField(String param);
> @Message(id = 5, value = "The given interceptor instance is of the wrong type")
> IllegalArgumentException wrongInterceptorType();
> // ...
> {code}
> Yields this output:
> {code:title=InvocationMessages_$bundle.java}
> // ...
>
> @Override
> public final IllegalArgumentException nullParameter(final String param) {
> IllegalArgumentException result = new IllegalArgumentException();
> return result;
> }
> protected String nullParameter$str() {
> return nullParameter;
> }
>
> @Override
> public final InvalidObjectException nullField(final String param) {
> InvalidObjectException result = new InvalidObjectException();
> return result;
> }
> protected String nullField$str() {
> return nullField;
> }
> @Override
> public final IllegalArgumentException wrongInterceptorType() {
> IllegalArgumentException result = new IllegalArgumentException();
> return result;
> }
> protected String wrongInterceptorType$str() {
> return wrongInterceptorType;
> }
> // ...
> {code}
> In particular this is an issue because InvalidObjectException does not have a no-arg constructor.
--
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