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

test DerbyNetAutoStart uses non-portable mechanism to check on derby.log

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.1.3.1
    • Fix Version/s: 10.1.3.1
    • Component/s: Test
    • Labels:
      None
    • Environment:
      zOS

      Description

      The test DerbyNetAutoStart uses RandomAccessFile.readLine() on derby.log to find an occurrence of a String[] to decide whether the tests passes or not.

      This mechanism assumes that derby.log is in Unicode-compatible encoding, which may not be true.
      Also, readLine() documentation indicates that it does not support the 'full Unicode range', so may not be the best choice.

      And indeed, the test fails on zOS, even though the string looked for is present in derby.log.

        Attachments

        1. DERBY-1247_102_20060422.diff
          2 kB
          Myrna van Lunteren

          Activity

            People

            • Assignee:
              myrna Myrna van Lunteren
              Reporter:
              myrna Myrna van Lunteren
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: