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 257137

Summary: Source -> Inspect.. doesn't work on maven multi-modules projects
Product: java Reporter: -Silver-
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: IDE log

Description -Silver- 2015-12-14 12:38:58 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b18

Reproducibility: Happens every time

STEPS:
  1. Open a maven multi-module project
  2. Go to Source -> Inspect.. 
  3. Select current project as scope (the current project is the maven multi-module project)
  4. Select a single inspection (for example unnecessary unboxing)  and then click on the button "Inspect"

ACTUAL:
  The inspection result is empty because a maven multi-module project is an empty project. It only contains references to its sub-projects.

EXPECTED:
  The inspection is executed recursively on the project, on its sub-project on their sub-sub-project and so on. In the end a global result about all the occurrences in all the projects is provided.

POSSIBLE WORKAROUND:
  In the "scope" field there is the option "all opened projects". Maybe when the inspector is executed on a multi-module project it can get the references of all the submodules and then use the algorithm used for "all opened project" passing this set of sub-projects instead of the set of opened projects.
Comment 1 -Silver- 2015-12-14 12:39:06 UTC
Created attachment 157782 [details]
IDE log