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.
Summary: | Profile/Profile Other menu not refreshed correctly | ||
---|---|---|---|
Product: | profiler | Reporter: | J Bachorik <yardus> |
Component: | Base | Assignee: | J Bachorik <yardus> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
J Bachorik
2008-09-16 10:21:22 UTC
This seems to be regression against 6.0 The reason is that the menu actions have become only weakly held so we can not use them to keep a weak lookup listener alive. We must register the listener with the strong reference. fixed - http://hg.netbeans.org/profiler-main/rev/984ad33dfa15 Integrated into 'main-golden', will be available in build *200809181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/984ad33dfa15 User: Jaroslav Bachorik <yardus@netbeans.org> Log: #147348 - Profile/Profile Other menu not refreshed correctly Reproduced in Build 200811250201 Steps as in issue description. fixed - http://hg.netbeans.org/profiler-main/rev/ea279fcf0d8f The previous fix was not complete - it is necessary to hold a strong reference to a Lookup.Result if one wants to listen for changes. Integrated into 'main-golden', will be available in build *200811270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ea279fcf0d8f User: Jaroslav Bachorik <yardus@netbeans.org> Log: #147348 - Profile/Profile Other menu not refreshed correctly Lookup.Result needs to be held stronlgy in order not to be GCed - registering a listener is not enough VERIFIED in Build 200812010201 The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/cbc8d2033544 Changed Status whiteboard |