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 39188

Summary: Suggestions "stick" after switching files
Product: editor Reporter: Jesse Glick <jglick>
Component: Hints & AnnotationsAssignee: tasklist-issues@contrib <tasklist-issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: RANDOM
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2004-01-23 18:26:13 UTC
If I open the suggestions window and go to a
source file with some PMD violations, it shows
them; fine. But when I switch to another source
file without any, even a text file, even if I
close the original source file, they stay in the
Suggestions window.

By contrast, source to-do comment markers in the
Suggestions window seem to switch with the active
document correctly.

Cannot compare to copyright or Javadoc suggestion
providers, since the current NBMs of these modules
on dev alpha AU are too old - someone forgot to
publish new versions of them. (Need impl==1 and
get impl 2 of tasklist/{api,core}.)

org.netbeans.tasklistapi/1 [1.6.2 2]
org.netbeans.modules.tasklist.core/2 [1.21.22 2]
org.netbeans.modules.tasklist.pmd/2 [1.6.221 1]
org.netbeans.modules.suggestions_framework/2
[1.1.223 3]
org.netbeans.modules.tasklist.docscan/2 [1.12.2233 3]
org.netbeans.modules.tasklist.javaparser/2 [1.3.222 2]
Comment 1 _ pkuzel 2004-01-23 20:32:20 UTC
PMD suggestion provider should get (and handle) clear(...) event.
Comment 2 _ pkuzel 2004-01-26 17:38:25 UTC
I cannot reproduce as you described. However I can observe something
that is probably the same bug. 

While fast switching among files some suggestions stick or even
duplicate. It covers all suggestion types except copyright one.
The same applies to TODO view.
Comment 3 _ pkuzel 2004-01-27 17:41:20 UTC
SuggestionManagerImpl:575
Comment 4 _ pkuzel 2004-01-27 18:32:22 UTC
fixed
Comment 5 Milan Kubec 2004-03-02 08:48:02 UTC
Please, reporter, could you verify fixed issues. Thanks a lot.