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 55719 - [41cat][tag matching] code sometime consumes 100% of CPU until IDE is closed.
Summary: [41cat][tag matching] code sometime consumes 100% of CPU until IDE is closed.
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: PERFORMANCE
: 55816 56005 56024 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-01 17:23 UTC by Marek Fukala
Modified: 2006-03-24 13:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The jsp page for issue reproduction. (2.42 KB, text/plain)
2005-03-01 17:24 UTC, Marek Fukala
Details
Theread dump after the sittuation happens (11.19 KB, text/plain)
2005-03-02 11:54 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2005-03-01 17:23:23 UTC
[20050301]
To reproduce:
1) create a WP
2) copy attached file (select_java.jsp) into web
directory
3) include JSTL library into the WP
4) delete lines 44 and 45
5) put </c:if onto line 44 and invoke CC
=> the IDE consumes 100% of CPU until you close
the IDE.
Comment 1 Marek Fukala 2005-03-01 17:24:21 UTC
Created attachment 20596 [details]
The jsp page for issue reproduction.
Comment 2 Marek Fukala 2005-03-02 11:54:47 UTC
Created attachment 20610 [details]
Theread dump after the sittuation happens
Comment 3 Marek Fukala 2005-03-02 13:01:54 UTC
fixed.

There was a problem with SyntaxElement.getPreviousElement() called on
sripting language syntax element. It returned itself what caused the
CC code to run in a neverending cycle.

Checking in JspSyntaxSupport.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java,v
 <--  JspSyntaxSupport.java
new revision: 1.62; previous revision: 1.61
done
Comment 4 Marek Fukala 2005-03-03 09:28:27 UTC
*** Issue 55816 has been marked as a duplicate of this issue. ***
Comment 5 zikmund 2005-03-03 09:43:29 UTC
Duplicate issue 55816 discovered by NetCAT participant.
Comment 6 Pavel Buzek 2005-03-06 16:08:11 UTC
*** Issue 56005 has been marked as a duplicate of this issue. ***
Comment 7 Pavel Buzek 2005-03-06 16:14:16 UTC
*** Issue 56024 has been marked as a duplicate of this issue. ***
Comment 8 Jiri Kovalsky 2005-03-31 21:40:07 UTC
Verified in development build #200503301800 of NetBeans 4.1.