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 140393 - NetBeans startup regression: org.netbeans.modules.jumpto.symbol
Summary: NetBeans startup regression: org.netbeans.modules.jumpto.symbol
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://wiki.netbeans.org/FitnessViaWh...
Keywords: PERFORMANCE, REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2008-07-16 19:06 UTC by Alexander Kouznetsov
Modified: 2008-12-22 13:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktraces (251.41 KB, text/xml)
2008-07-16 19:07 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2008-07-16 19:06:34 UTC
Performance whitelist test reports that the following classes are being loaded on NetBeans startup:

org.netbeans.modules.jumpto.symbol.GoToPanel$ContentProvider
org.netbeans.modules.jumpto.symbol.GoToSymbolAction
org.netbeans.spi.jumpto.symbol.SymbolProvider

This is considered as NetBeans performance regression. Please remove these classes from NetBeans startup.

This issue is based on jtulach's comment:
Report a bug for the module to switch to new declarative actions 
(Actions.alwaysEnabled or TopComponent.openAction)
Comment 1 Alexander Kouznetsov 2008-07-16 19:07:07 UTC
Created attachment 64745 [details]
Stacktraces
Comment 2 Jan Lahoda 2008-08-19 12:54:50 UTC
TopComponent.openAction is not appropriate for this action (GoToSymbolAction).

The GoToSymbolAction is enabled if at least one project is opened (and this was a requirement for the Go to Type action,
which is the parent of the Go to Symbol action). So Actions.alwaysEnabled.

The most appropriate way, IMO, to fix this is to provide an action wrapper similar to Actions.alwaysEnabled, which would
keep the action enabled iff at least one project is opened. Please provide such a wrapper.
Comment 3 Jan Becicka 2008-09-25 10:32:43 UTC
Please provide action and reassign back
Comment 4 Alexander Kouznetsov 2008-09-30 15:50:55 UTC
Two classes were added to whitelist according to comment in issue 147847:

org.netbeans.modules.jumpto.symbol.GoToPanel$ContentProvider
org.netbeans.modules.jumpto.symbol.GoToSymbolAction 

See http://hg.netbeans.org/main/rev/26975c90e0ca 

Third class is not loaded any more.