[seam-issues] [JBoss JIRA] Created: (JBSEAM-4675) LogImpl.interpolate() is broken
Stephan Bublava (JIRA)
jira-events at lists.jboss.org
Thu Jul 22 10:26:39 EDT 2010
LogImpl.interpolate() is broken
-------------------------------
Key: JBSEAM-4675
URL: https://jira.jboss.org/browse/JBSEAM-4675
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.2.1.CR1
Reporter: Stephan Bublava
This is the implementation of LogImpl.interpolate():
private Object interpolate(Object object, Object... params)
{
if (object instanceof String)
{
try {
return Interpolator.instance().interpolate( (String) object, params );
} catch (Exception e) {
log.error("exception interpolating string: " + object, e);
} finally {
return object;
}
}
else
{
return object;
}
}
The return statement in the finally block is bogus, because it trumps the other one. In other words the method always returns "object" and discards the result of the interpolation.
This is a regression from 2.2.0.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list