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 204630

Summary: CodeCompletion took 2003 ms.
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED WONTFIX    
Severity: normal CC: akobberup, arittner, gerzhedowich, gilbertoca, javydreamercsw, onmomo, rdion, sdlarsen, tnleeuw, vegetassj5
Priority: P3 Keywords: PERFORMANCE
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 178524
Attachments: nps snapshot
nps snapshot

Description Exceptions Reporter 2011-11-03 14:46:28 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109252201)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
arittner: CodeCompletion with Lookup.getDefault

tnleeuw: Typed 'sessionFactory.get'; that quickly resulted in a list of possible completiond.
Then added 'Cur' to select the completion 'getCurrentSession()' and that's what took so long.



Maximum slowness yet reported was 23359 ms, average is 8502
Comment 1 Exceptions Reporter 2011-11-03 14:46:32 UTC
Created attachment 112783 [details]
nps snapshot
Comment 2 tnleeuw 2011-11-03 21:45:28 UTC
Created attachment 112807 [details]
nps snapshot
Comment 3 Milos Kleint 2013-01-09 12:39:08 UTC
it appears that the J2seLogicalViewProvider should not call initListeners() -> addLinbraryManagerListener() which can hang on synchronization
Comment 4 Tomas Zezula 2013-01-09 17:45:57 UTC
In reply to comment #3, probably in wrong issue.
There is no call to initListeners() in the snapshot, also the CC thread is not blocked by any lock.
The problem is in J2SELibrarySOurceForBinaryQuery listing project library managers.
Comment 5 Martin Balin 2016-07-07 07:16:54 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss