[jboss-jira] [JBoss JIRA] (LOGTOOL-64) MessageMethod does not have an usable constructor for the return type if msg is not first parameter

Norman Maurer (JIRA) jira-events at lists.jboss.org
Tue Feb 19 08:59:56 EST 2013


Norman Maurer created LOGTOOL-64:
------------------------------------

             Summary: MessageMethod does not have an usable constructor for the return type if msg is not first parameter
                 Key: LOGTOOL-64
                 URL: https://issues.jboss.org/browse/LOGTOOL-64
             Project: Log Tool
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
    Affects Versions: 1.1.0.Final
            Reporter: Norman Maurer
            Assignee: James Perkins


If you try to to define a Exception that has the msg as second argument it will fail with:

java: MessageMethod does not have an usable constructor for the return type javax.websocket.EncodeException.

The EncodeException has the signature:
EncodeException(Object obj, String msg)

So I tried to define it as:
@Message(id = 3008, value="No suitable encoder found")
EncodeException noSuitableEncoder(@Param Object obj);



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list