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.
Performance test reports that the following class is loaded during 2nd NetBeans startup without any projects opened. org.netbeans.modules.cnd.navigation.hierarchy.HierarchyTopComponent$ResolvableHelper Please don't load this class. This issue is based on the following jtulach's comment: Bug in cnd. Looks like useless deserialization.
Created attachment 69930 [details] Stacktrace
As I understand, it reproduces as follows: 1. launch NB, open a C/C++ project, invoke type or header hierarchy 2. close all projects, close IDE 3. open IDE with options -J-verbose:class 2>&1 | grep ResolvableHelper See that the class is loaded. If you don't open C/C++ projects or never invoke hierarchy, the class is not loaded. Do I understand the issue correctly? Anyhow, I see no reason for this to be P3.
The class is loaded when there are no projects opened. So this is considered as P3 issue.
There is no C/C++ project opened during the first start - the IDE is just closed. So there seems to be no reason to have the HierarchyTopComponent trying to deserialize during the second start. Can you find out why it happens?
Be consistent. Compare with IZ#146490. So it is P4.
We are consistent. At the same time as this issue we reported P3 issue 147355 against core/palette.
I think that this bug is a part of IZ#127408 because I see following loaded classes (first and second start without projects): [Loaded org.netbeans.modules.cnd.navigation.hierarchy.HierarchyAction from jar:file:/export/home/as204739/main/nbbuild/netbeans/cnd2/modules/org-netbeans-modules-cnd-navigation.jar!/] [Loaded org.netbeans.modules.cnd.navigation.hierarchy.HierarchyTopComponent from jar:file:/export/home/as204739/main/nbbuild/netbeans/cnd2/modules/org-netbeans-modules-cnd-navigation.jar!/] [Loaded org.netbeans.modules.cnd.navigation.hierarchy.HierarchyTopComponent$ResolvableHelper from jar:file:/export/home/as204739/main/nbbuild/netbeans/cnd2/modules/org-netbeans-modules-cnd-navigation.jar!/]
So, if I change: public @Override int getPersistenceType() { return TopComponent.PERSISTENCE_ALWAYS; //-> to TopComponent.PERSISTENCE_ONLY_OPENED } It do not fix redundant loading.
Updated priority to keep consistency.
Please evaluate
fixed http://hg.netbeans.org/cnd-main?cmd=changeset;node=4e6c49097068
Integrated into 'main-golden', will be available in build *200909301401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4e6c49097068 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed IZ#147352: HierarchyTopComponent$ResolvableHelper is loaded during 2nd NetBeans startup