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 114647

Summary: IOOBE thrown while editing RHTML file
Product: editor Reporter: Jiri Skrivanek <jskrivanek>
Component: LexerAssignee: issues@editor <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: mmirilovic
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Entire stack trace.

Description Jiri Skrivanek 2007-09-04 15:28:20 UTC
IndexOutOfBoundsException is thrown when you type <%= l into RHTML file. It might be related to issue 108617. To reproduce:

- create Ruby project
- open new file wizard
- choose Ruby|RHTML file
- type <%= l and the following exception is thrown:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
	at org.netbeans.lib.editor.util.GapList.addArray(GapList.java:576)

Product Version: NetBeans IDE Dev (Build 200709040000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System:
Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 1 Jiri Skrivanek 2007-09-04 15:29:11 UTC
Created attachment 48066 [details]
Entire stack trace.
Comment 2 Jiri Skrivanek 2007-09-04 15:34:04 UTC
Increasing priority because it arises after you type any other single character.
Comment 3 Miloslav Metelka 2007-09-06 21:22:38 UTC
This is in fact a dup of issue 114613 (it's eliminated by its fix).

*** This issue has been marked as a duplicate of 114613 ***
Comment 4 Jiri Skrivanek 2007-09-10 08:18:19 UTC
Verified.