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 210087 - configurations are not working properly
Summary: configurations are not working properly
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 10:37 UTC by Jiri Prox
Modified: 2012-04-08 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-03-26 10:37:30 UTC
Inspect action (Source -> Inspect) always searches for the whole set of rules, even when single rule is selected

Steps to reproduce:
1) have a class
public class Paths {
    public void neco(int x){
        x = x + 2;
        System.out.println(x);
    }
}

2) open Inspect dialog
3) select Current file as a scope and 'Assignment replaceable with operator assignment' as single inspection
->
4 occurrences are found (No logger, Assignment to method parameter, replaceable assignment, use of System.out) , but expected is only one


Product Version: NetBeans IDE Dev (Build 20120322-8b13bf21c968)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jan Lahoda 2012-03-28 06:54:05 UTC
The usecase described above is basically a duplicate of bug #210084. But the configurations are not working properly (esp. for java.hints) - we can either use this bug to cover them, or we can file a new bug. Up to you.
Comment 2 Jiri Prox 2012-03-28 06:57:57 UTC
Ok, there is no need to fill another bug, let's use this.
Thanks for evaluation
Comment 3 Quality Engineering 2012-04-05 09:41:50 UTC
Integrated into 'main-golden', will be available in build *201204050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e676d8025d27
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #210087, #210184: making Source/Inspect... configurations work for java.hints, and a few related fixes.
Comment 4 Jan Lahoda 2012-04-06 07:12:05 UTC
The fix above should ensure that the customization dialog for the Configurations contains panel for java.hints, is filled with the appropriate content, and the selected hints/warnings are used when doing the analysis.

One more fix for the dialog opened by the Browse (for single inspection) button:
http://hg.netbeans.org/jet-main/rev/38c4567ee539

There may be other (hopefully smaller) bugs in the Configurations&Single Inspection dialogs, but I propose to handle them separately.
Comment 5 Quality Engineering 2012-04-08 09:53:37 UTC
Integrated into 'main-golden', will be available in build *201204080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/38c4567ee539
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #210087: making Source/Inspect...'s Browse should preselect the correct Analyzer and warning, the java.hints' customizer should not show checkboxes in this case.