Index: modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/SimpleFormatterTest.java =================================================================== --- modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/SimpleFormatterTest.java (revision 438348) +++ modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/SimpleFormatterTest.java (working copy) @@ -73,6 +73,7 @@ public void testFormat() { String str = sf.format(lr); + Throwable t; lr.setMessage(MSG + " {0,number}"); lr.setLoggerName("logger"); @@ -81,7 +82,7 @@ lr.setSourceMethodName("method"); lr.setParameters(new Object[] { new Integer(100), new Object() }); lr.setThreadID(1000); - lr.setThrown(new Exception("exception") { + lr.setThrown(t = new Exception("exception") { private static final long serialVersionUID = 1L; public String getLocalizedMessage() { @@ -97,7 +98,7 @@ assertTrue(str.indexOf("class") > 0); assertTrue(str.indexOf("method") > 0); assertTrue(str.indexOf("100") > 0); - assertTrue(str.indexOf("locale") > 0); + assertTrue(str.indexOf(t.toString()) > 0); assertTrue(str.indexOf(Level.FINE.getLocalizedName()) > 0); }