Clebert Suconic created LOGTOOL-87:
--------------------------------------
Summary: @Cause is Ignored in exception creation
Key: LOGTOOL-87
URL:
https://issues.jboss.org/browse/LOGTOOL-87
Project: Log Tool
Issue Type: Feature Request
Affects Versions: 2.0.0.Alpha1
Reporter: Clebert Suconic
Assignee: James Perkins
Priority: Critical
Fix For: 2.0.0.Alpha2
on this following method:
@Message(id = 119016, value = "Connection failure detected. Unblocking a blocking
call that will never get a response")
ActiveMQUnBlockedException unblockingACall(@Cause Throwable t);
The cause would be initialized with this:
final org.apache.activemq.api.core.ActiveMQUnBlockedException result = new
org.apache.activemq.api.core.ActiveMQUnBlockedException(String.format(unblockingACall$str()));
new
org.apache.activemq.api.core.ActiveMQUnBlockedException(String.format(unblockingACall$str())).initCause(t);
i.e the initCause is ignored
The previous version (1.x) would call result.initCause properly.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)