Uploaded image for project: 'Kamikaze'
  1. KAMI-31

java.lang.ArrayIndexOutOfBoundsException: -1 in ImmutableIntArrayDocIdSet

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None
    • Sprint:

      Description

      Please see attached patch for the error and suggested fix for the following exception:

      -------------------------------------------------------------------------------
      Test set: com.kamikaze.test.PForDeltaTestKamikazeTest
      -------------------------------------------------------------------------------
      Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.337 sec <<< FAILURE!
      testImmutableSet(com.kamikaze.test.PForDeltaTestKamikazeTest)  Time elapsed: 0.004 sec  <<< ERROR!
      java.lang.ArrayIndexOutOfBoundsException: -1
              at com.kamikaze.docidset.impl.ImmutableIntArrayDocIdSet$ImmutableIntArrayDocIdSetIterator.advance(ImmutableIntArrayDocIdSet.java:70)
              at com.kamikaze.test.PForDeltaTestKamikazeTest.testImmutableSet(PForDeltaTestKamikazeTest.java:183)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at junit.framework.TestCase.runTest(TestCase.java:168)
              at junit.framework.TestCase.runBare(TestCase.java:134)
              at junit.framework.TestResult$1.protect(TestResult.java:110)
              at junit.framework.TestResult.runProtected(TestResult.java:128)
              at junit.framework.TestResult.run(TestResult.java:113)
              at junit.framework.TestCase.run(TestCase.java:124)
              at junit.framework.TestSuite.runTest(TestSuite.java:232)
              at junit.framework.TestSuite.run(TestSuite.java:227)
              at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
              at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
              at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
              at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
              at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
              at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      

        Attachments

          Activity

            People

            • Assignee:
              hyan hao yan
              Reporter:
              pawel.krol Pawel Krol
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: