This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20626

Summary: AIOOBE from Term.textWithin
Product: cnd Reporter: akemr <akemr>
Component: TerminalemulatorAssignee: ivan <ivan>
Status: RESOLVED INCOMPLETE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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?