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 137687

Summary: Infinite AssertionError and more when using EL in .jsp
Product: editor Reporter: polan <polan>
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: VERIFIED FIXED    
Severity: blocker CC: jsedek, mschovanek
Priority: P1    
Version: 6.x   
Hardware: All   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:
Attachments: First exception - IndexOutOfBoundsException
Second exception - ArrayIndexOutOfBoundsException
Repeating AssertionError

Description polan 2008-06-19 10:53:35 UTC
This was encountered while verifying issue 101119.

To reproduce:

1) Create new Web project with default values

2) Edit your index.jsp to the following result (the | char is where your cursor should be):
  ...
   <body>
      <h2>Hello World!</h2>
      <h3>${1+2}</h3>|
   </body>
  ...

3) Press Backspace 5 times (deleting '}</h3>')
ERROR: java.lang.IndexOutOfBoundsException (see attached file and issue 137685)

4) Select the entire line and delete it
ERROR: java.lang.ArrayIndexOutOfBoundsException (see attached file)
ERROR: Code coloring and CC is broken, everything from doctype declaration to </html> is treated like a plain text

5) Type anything anywhere
ERROR: java.lang.AssertionError occurs after each char typed (see attached file)
Comment 1 polan 2008-06-19 10:54:11 UTC
Created attachment 63071 [details]
First exception - IndexOutOfBoundsException
Comment 2 polan 2008-06-19 10:54:33 UTC
Created attachment 63072 [details]
Second exception - ArrayIndexOutOfBoundsException
Comment 3 polan 2008-06-19 10:55:04 UTC
Created attachment 63073 [details]
Repeating AssertionError
Comment 4 polan 2008-06-19 10:56:36 UTC
NOTE: This is probably related to issue 137685 , where you can get repeating NullPointerExceptions
Comment 5 polan 2008-06-19 13:10:21 UTC
NOTE: This happened on [Build 200806190009, JDK 1.6.0, Vista]
Comment 6 Marek Fukala 2008-06-19 13:13:24 UTC
All of the exceptions are caused by some bugs in lexer, reassigning.
Comment 7 Jindrich Sedek 2008-06-25 09:43:58 UTC
this issue blocks jsp editing, it needs to be fixed in 6.5M1
Comment 8 Miloslav Metelka 2008-06-27 00:04:26 UTC
Should be eliminated by fixes in issue 137685.
Comment 9 Jan Horvath 2008-06-27 12:05:41 UTC
v