You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/12/02 20:31:20 UTC

[jira] Created: (CODEC-92) Many test cases use getBytes() which uses the default platform encoding so tests may fail on some platforms

Many test cases use getBytes() which uses the default platform encoding so tests may fail on some platforms
-----------------------------------------------------------------------------------------------------------

                 Key: CODEC-92
                 URL: https://issues.apache.org/jira/browse/CODEC-92
             Project: Commons Codec
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Sebb
            Priority: Minor


Many test cases use getBytes() or new .String(byte[] bytes).
These both use the default platform encoding so the tests may fail on some platforms.

The tests should either use a known encoding (e.g. UTF-8) or should use bytes directly (e.g. 'h','e','l','l','o' instead of "hello".getBytes())

There don't seem to be any examples of such method calls in the main code, so the priority has been set to minor.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.