Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.7.25
-
None
Description
Some logging statements will not work as intended after upgrading to 1.7.25, due to a change in the way exceptions are handled in MessageFormatter. The following test will illustrate the issue:
@Test public void testExceptionAsParameter() { Exception e = new Exception("A terrible mistake"); result = MessageFormatter.format("Error! {}", e).getMessage(); assertEquals("Error! A terrible mistake", result); }
Result:
org.junit.ComparisonFailure: Expected :Error! A terrible mistake Actual :Error! {}
This seems to be a regression of SLF4J-353.