Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-92

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: