Derby
  1. Derby
  2. DERBY-4514

j2ME test failures relating to runtimeStatisticsParser

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.6.1.0
    • Component/s: Test
    • Labels:
      None
    • Environment:
      IBM's j9 and Sun's cvm-MR2
    • Urgency:
      Normal
    • Bug behavior facts:
      Regression Test Failure

      Description

      After my change for DERBY-4038 to the runtimeStatisticsParser, the IBM tests show 44 errors and the Sun tests 48 - because I've used the String.split method which isn't available with j2ME.

      For example:
      1) testDynamicLikeOptimization(org.apache.derbyTesting.functionTests.tests.lang.DynamicLikeOptimizationTest)java.lang.NoSuchMethodError: java/lang/String.split(Ljava/lang/String[Ljava/lang/String;
      at org.apache.derbyTesting.junit.RuntimeStatisticsParser.getStartPosition(RuntimeStatisticsParser.java:421)
      at org.apache.derbyTesting.junit.RuntimeStatisticsParser.<init>(RuntimeStatisticsParser.java:81)
      at org.apache.derbyTesting.junit.SQLUtilities.getRuntimeStatisticsParser(SQLUtilities.java:125)
      at org.apache.derbyTesting.functionTests.tests.lang.DynamicLikeOptimizationTest.testDynamicLikeOptimization(DynamicLikeOptimizationTest.java:547)
      at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:195)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

      The runtimeStatisticsParser code needs to be adjusted.

      1. DERBY-4514.diff
        2 kB
        Myrna van Lunteren

        Activity

        Gavin made changes -
        Workflow jira [ 12488042 ] Default workflow, editable Closed status [ 12800297 ]
        Myrna van Lunteren made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Myrna van Lunteren made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 10.6.0.0 [ 12313727 ]
        Resolution Fixed [ 1 ]
        Hide
        Myrna van Lunteren added a comment -

        regression tests ran without failures; committed the patch with revision 898638.

        Will wait until there's a clean run with the j2ME before closing this.

        Show
        Myrna van Lunteren added a comment - regression tests ran without failures; committed the patch with revision 898638. Will wait until there's a clean run with the j2ME before closing this.
        Myrna van Lunteren made changes -
        Field Original Value New Value
        Attachment DERBY-4514.diff [ 12430052 ]
        Hide
        Myrna van Lunteren added a comment -

        Attaching a patch that uses org.apache.derbyTesting.junit.Utilities.split for j2ME.

        DynamicLikeOptimizationTest, one of the tests that failed before, passes with this patch.

        I'm running suites.All with j9 and will then do same with ibm jdk 1.6, to be sure I don't introduce another problem, and commit after that's all ok.

        Show
        Myrna van Lunteren added a comment - Attaching a patch that uses org.apache.derbyTesting.junit.Utilities.split for j2ME. DynamicLikeOptimizationTest, one of the tests that failed before, passes with this patch. I'm running suites.All with j9 and will then do same with ibm jdk 1.6, to be sure I don't introduce another problem, and commit after that's all ok.
        Myrna van Lunteren created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development