[wildfly-dev] Return types of i18n logging methods and their "equality" expectations

David M. Lloyd david.lloyd at redhat.com
Mon Apr 29 09:43:11 EDT 2013


On 04/27/2013 10:10 PM, Jaikiran Pai wrote:
> On Saturday 27 April 2013 09:11 PM, James R. Perkins wrote:
>> Not that wouldn't work. Each invocation of fooBar() will return a new
>> instance of SomeException.
> Ok. I thought that for no param messages the return type would be cached
> and reused.

Exceptions capture a new stack trace for each instantiation, so they're 
not often equal even if their inputs all seem equal.

-- 
- DML


More information about the wildfly-dev mailing list