Community
Participate
Working Groups
When typing into the JSP editor, the tokenizer will frequently overflow its JSP tag stack. It looks like this is occurring because each succession of typing a character is considered a new tag by the tokenizer: <c <c: <c:o <c:ou <c:out will push 5 boolean values onto the stack. Meanwhile, terminating the tag will only pop one value from the stack. This results in an eventual stack overflow.
*** Bug 265370 has been marked as a duplicate of this bug. ***
Created attachment 126236 [details] patch with generated tokenizer I've attached a patch that resolves the stack overflow. The issue was that fJspTagStack was not being cleared on reset. So each time a new character was entered in a tag name, it was being added to the stack, but because the tag was never properly terminated (thus closing the scope of the tag), its state was never popped. This would eventually lead to a stack overflow after roughly 100 characters were entered. Now, when the tokenizer is reset, the stack is cleared. The changes in the generated source code from the jflex spec was small enough that I felt I could include it in the patch. I've added a test that modifies a document by inserting a series of elements character-by-character.
Nitin, could you please review this?
Released to Maintenance and Head.
*** Bug 268214 has been marked as a duplicate of this bug. ***
*** Bug 270188 has been marked as a duplicate of this bug. ***
*** Bug 271796 has been marked as a duplicate of this bug. ***
How would one go about integrating this patch into an existing Eclipse installation?
Keep an eye on bug 271506, which is tracking moving this fix to the update site. Once there, you should be able to update like normal to pull down the fix.
*** Bug 282829 has been marked as a duplicate of this bug. ***