[
http://jira.jboss.com/jira/browse/JBESB-683?page=all ]
Mark Little resolved JBESB-683.
-------------------------------
Resolution: Done
Have added a getValue operation that behaves like getProperty in System. Updated comments
to reflect differences in null behaviour.
Will close and checkin once MR3 is out.
ListenerUtil.obtainAtt has different interpretation of default value
for null
-----------------------------------------------------------------------------
Key: JBESB-683
URL:
http://jira.jboss.com/jira/browse/JBESB-683
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Rosetta
Reporter: Mark Little
Assigned To: Mark Little
Fix For: 4.2
The normal assumption of null for a default value (e.g., in System.getProperty) is that
you return null if there is nothing set. However, in ListenerUtil, if you pass null as a
default value this means throw a ConfigurationException on finding null for the value.
This is not intuitive and goes against all other similar mechanisms. If we need this
capability, then let's add an explicit method for throwing an exception, or another
parameter.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira