You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2006/08/29 14:19:23 UTC

[jira] Updated: (HARMONY-1338) [logging][test] unnecessary dependency on implementation of j.l.Throwable.toString()

     [ http://issues.apache.org/jira/browse/HARMONY-1338?page=all ]

Alexey Varlamov updated HARMONY-1338:
-------------------------------------

    Attachment: harmony-1338.patch

The suggested fix is to check ordinary throwable message instead.

> [logging][test] unnecessary dependency on implementation of j.l.Throwable.toString()
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1338
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1338
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Alexey Varlamov
>            Priority: Trivial
>         Attachments: harmony-1338.patch
>
>
> The org.apache.harmony.logging.tests.java.util.logging.SimpleFormatterTest.testFormat verifies that if LogRecord has a throwable associated, then localized message of the Throwable should appear in the formatted string.
> This is overkill, because there is discrepancy between j.l.Throwable.toString() specification and most implementations [1]. Anyway, this test unnecessarily depends on API contract of j.l.Throwable.getLocalizedMessage().
> [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4298805

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira