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 199773 - Infinite loop in org.netbeans.modules.j2ee.persistence.editor.completion.CCParser
Summary: Infinite loop in org.netbeans.modules.j2ee.persistence.editor.completion.CCPa...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 199839 199906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-30 07:49 UTC by Jan Becicka
Modified: 2011-11-28 12:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (4.86 KB, application/octet-stream)
2011-06-30 07:51 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2011-06-30 07:49:25 UTC
Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Mac OS X version 10.5.8 running on x86_64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307

Editor features does not work. Parsing hanged (because of j2ee completion?)
P1 for me. 100% reproducible on my Mac.
Comment 1 Jan Becicka 2011-06-30 07:51:15 UTC
Created attachment 109161 [details]
snapshot
Comment 2 Jan Becicka 2011-06-30 07:53:05 UTC
product version is:
Product Version: NetBeans IDE Dev (Build 20110630-cecfc6c79a5b)
Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)

this is not 7.0 issue
Comment 3 Jan Lahoda 2011-07-01 16:42:37 UTC
I apologize for committing into your code, but this was making the IDE unusable (simply call CC after typing "priva" between methods, or something similar). So I applied a hotfix that prevents the infinite loop:
http://hg.netbeans.org/jet-main/rev/177a511a3d51

Please review. Thanks.
Comment 4 Quality Engineering 2011-07-02 14:08:35 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/177a511a3d51
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #199773: preventing infinite loop.
Comment 5 Sergey Petrov 2011-07-04 09:17:32 UTC
it's ok, thanks for fast fix.
also I'm going to keep this one open for invesigation but as it's "fast fixed" => p2.
Comment 6 Sergey Petrov 2011-07-04 09:19:50 UTC
also it may be correct to have this as permanent fix as I see, thanks, will investigate anyway.
Comment 7 Sergey Petrov 2011-07-04 13:02:28 UTC
found one more loop with possible similar problems inside (but may be never used in such cases), applied the same fix. from javadoc for movePrevious fix is proper one and do what was expected by null check, so the issue is fixed.
Comment 8 Quality Engineering 2011-07-05 13:58:07 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/cf2f6af8069c
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #199773 one more possible place for loop
Comment 9 Sergey Petrov 2011-07-06 15:27:01 UTC
*** Bug 199839 has been marked as a duplicate of this bug. ***
Comment 10 Jan Lahoda 2011-07-07 06:46:37 UTC
*** Bug 199906 has been marked as a duplicate of this bug. ***