ApplicationException swallows key if used as message in Throwable variant
constructor
-------------------------------------------------------------------------------------
Key: MIFOS-4416
URL: http://mifosforge.jira.com/browse/MIFOS-4416
Project: mifos
Issue Type: Bug
Reporter: Michael Vorburger
Priority: Major
The ApplicationException, if the key isn't actually a message key but just a
message, passes it to the parent Exception via super. But the
ApplicationException(String key, Throwable cause, Object[] values) doesn't
forward the key (like ApplicationException(String key, Object[] values) via
ApplicationException(String key, Object[] values, String internalMessage) does.
So ApplicationException(String key, Throwable cause, Object[] values) should
use super(key, cause) instead of super(cause).
I've discovered this when wanting to add a Charts of Accounts XML loading
failed detailed message in FinancialInitializer.java, and am including that
minor enhancement in the patch.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues