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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.3.1
    • Fix Version/s: 10.1.3.1
    • Component/s: Network Server
    • Labels:
      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

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              djd Daniel John Debrunner

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment