#3824 ArrayIndexOutOfBoundsException during hyperseach

closed-fixed
None
7
2013-11-13
2013-09-04
Shlomy Reinstein
No
0 up votes | 0 down votes | 0%
4 comments

When I use "hypersearch" (in current buffer), with "whole-word" selected, and I search for "0" (zero, without the quotes), I get the exception:
java.lang.ArrayIndexOutOfBoundsException
at org.gjt.sp.jedit.buffer.BufferSegment.subSegment(BufferSegment.java:104)
at org.gjt.sp.jedit.buffer.BufferSegment.subSequence(BufferSegment.java:71)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:93)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:94)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:94)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:94)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:94)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:94)
at org.gjt.sp.jedit.search.BoyerMooreSearchMatcher.nextMatch(BoyerMooreSearchMatcher.java:94)
at org.gjt.sp.jedit.search.HyperSearchRequest.doHyperSearch(HyperSearchRequest.java:277)
at org.gjt.sp.jedit.search.HyperSearchRequest.doHyperSearch(HyperSearchRequest.java:237)
at org.gjt.sp.jedit.search.HyperSearchRequest._run(HyperSearchRequest.java:144)
at org.gjt.sp.util.Task.run(Task.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

jEdit 5.1.0, Java 1.7.0_11

Discussion

  • Alan Ezust
    Alan Ezust
    2013-10-26

    • summary: Exception during hyperseach --> ArrayIndexOutOfBoundsException during hyperseach
     
    • assigned_to: nobody --> shlomy
     
  • Fixed in trunk by the patch 3615185

     
    • assigned_to: shlomy --> kpouer
    • status: open --> closed-fixed