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 121888 - Infinite loop of HTMLSyntaxParser on SGML comment
Summary: Infinite loop of HTMLSyntaxParser on SGML comment
Status: CLOSED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-14 11:40 UTC by Marek Fukala
Modified: 2009-05-18 10:47 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2007-11-14 11:40:57 UTC
1) open an html file
2) type: <!X -- comment --
3) type: >

-> the completion code invokes HTMLSyntaxParser which stays in an infinite loop:

"AWT-EventQueue-1" prio=1 tid=0x09305468 nid=0x4f10 runnable [0x834ad000..0x834ae140]
        at org.netbeans.editor.ext.html.HTMLSyntaxSupport.getElementChain(HTMLSyntaxSupport.java:490)
        at org.netbeans.editor.ext.html.HTMLSyntaxSupport.checkCompletion(HTMLSyntaxSupport.java:912)
        at org.netbeans.modules.editor.html.HTMLCompletionProvider.getAutoQueryTypes(HTMLCompletionProvider.java:80)
        at org.netbeans.modules.editor.completion.CompletionImpl.insertUpdate(CompletionImpl.java:284)
[snip]

The problem is a regression of lexerization of the html editor module done before a year. The same problem appears in
netbeans 6.0 M8 from March of this year. Since noone reported the issue during the year I do not consider it as a
stopper for Netbeans 6.0. The final decision in on QE though. 

BTW the errorneous code will be removed from trunk soon and replaced by new clean solution.
Comment 1 Petr Blaha 2007-11-14 11:57:08 UTC
I agree the issue isn't stopper for NB 6.0.
Comment 2 Petr Jiricka 2007-11-15 12:48:57 UTC
Setting target milestone to Dev.
Comment 3 Marek Fukala 2008-01-09 02:15:58 UTC
I cannot reproduce the issue now, maybe fixed by some other fixes in the lexer. Jindro, could you please to verify that
the issue is not valid? Thanks,
Comment 4 Jindrich Sedek 2008-01-09 10:43:52 UTC
I'm not able to reproduce any loop, seems to work fine.
Comment 5 Jindrich Sedek 2008-01-09 10:44:31 UTC
v.
NetBeans IDE Dev (Build 200801080000)
Comment 6 Marek Fukala 2008-01-09 16:10:52 UTC
thanks Jindro