Bug 20626 - AIOOBE from Term.textWithin
AIOOBE from Term.textWithin
Status: RESOLVED INCOMPLETE
Product: cnd
Classification: Unclassified
Component: Terminalemulator
6.x
PC Windows ME/2000
: P4 (vote)
: TBD
Assigned To: ivan
ivan
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-02-18 08:34 UTC by akemr
Modified: 2010-12-19 06:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description akemr 2002-02-18 08:34:39 UTC
After I changed Term.textWithin, to call visitLines() with newlines=true
and then call: 

term.textWithin( Coord.make(0,0), term.getCursorCoord() )

I always got following exception:

java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at java.lang.StringBuffer.append(StringBuffer.java:498)
        at org.netbeans.lib.terminalemulator.Term$1.visit(Term.java:635)
        at org.netbeans.lib.terminalemulator.Buffer.visitLines(Buffer.java:177)
        at org.netbeans.lib.terminalemulator.Term.visitLines(Term.java:690)
        at org.netbeans.lib.terminalemulator.Term.textWithin(Term.java:633)
       
So I rollbacked my change in textWithin for now.
Comment 1 Marek Grummich 2002-07-22 08:32:10 UTC
Target milestone was changed from '3.4' to TBD.
Comment 2 Marek Grummich 2002-07-22 08:40:26 UTC
Target milestone was changed from '3.4' to TBD.
Comment 3 Marek Grummich 2002-07-22 09:00:33 UTC
Target milestone was changed from '3.4' to TBD.
Comment 4 Marek Grummich 2002-07-22 09:07:56 UTC
Target milestone was changed from '3.4' to TBD.
Comment 5 ivan 2010-12-16 09:23:42 UTC
Exceptions to be treated as P2
Comment 6 Leonid Lenyashin 2010-12-16 10:29:34 UTC
Is it still valid??? It is pretty old one. I bet it is outdated.
Comment 7 ivan 2010-12-19 06:52:26 UTC
The AIOOB occurs when an API is used in a novel way.
Ales backed out his change so no existing code that causes this exception.

Ales are you still with us?
Do you remember what you were trying to accomplish with visitLines?
Save to file perhaps?


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo