Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-902

Remove use of String(byte[]) and String(byte[], int, int) constructors in engine leading to non-portable behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.3.1
    • 10.1.3.1
    • Network Server
    • None

    Description

      These constructors use the Java default platform encoding to convert the bytes to a String, this typically leads to bugs on platforms with different encodings.

      Replace with code using fixed conversion, or alternative mechanisms.
      If the call is required its use should be commented as to why it is required.

      org.apache.derby.catalog.SystemProcedures

      I generated this list using the Java search in eclipse for references to the constructors
      String(byte[])
      String(byte[],int,int) - no occurrrences in java/engine

      Attachments

        1. DERBY-902_021306_2.diff
          1 kB
          Myrna van Lunteren
        2. DERBY-902_021306.stat
          0.1 kB
          Myrna van Lunteren

        Issue Links

          Activity

            People

              Unassigned Unassigned
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: