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 200717

Summary: Profiler is on in FoD mode
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: jglick
Priority: P1    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed fix
Proposed fix with a test

Description Jaroslav Tulach 2011-08-06 06:02:12 UTC
I was investigating recent failures in org.netbeans.modules.ide.ergonomics.WizardDeadTest.testDescriptionStep  and found out that java.project module is enabled after empty IDE with ergonomics cluster starts.

This may be related to changes in profiler dependencies, as Java Profiler module is also on.
Comment 1 Jaroslav Tulach 2011-08-06 06:53:28 UTC
Debugging module system shows eager module profiler.j2ee.tomcat that can be enabled and takes whole bunch of other java related modules with it.
Comment 2 Jesse Glick 2011-08-08 13:18:26 UTC
Perhaps because the change removed dep profiler -> java.kit but did not reintroduce analogous dep profiler.kit -> java.kit.
Comment 3 Tomas Hurka 2011-08-08 13:33:38 UTC
It looks like a problem with Dependency.TYPE_NEEDS.
Comment 4 Tomas Hurka 2011-08-08 14:58:56 UTC
Created attachment 109863 [details]
proposed fix

The attached patch fixes the problem.
Comment 5 Tomas Hurka 2011-08-09 08:35:44 UTC
Created attachment 109879 [details]
Proposed fix with a test

New patch now contains a test.
Comment 6 Tomas Hurka 2011-08-09 08:39:10 UTC
Jardo, please check that your ergonomics tests do not fail and if everything is OK, you can integrate the proposed fix with a unit test.
Comment 7 Jaroslav Tulach 2011-08-09 09:12:41 UTC
Thanks a lot for the investigation. Integrated as ergonomics#609d3c42f941
Comment 8 Quality Engineering 2011-08-10 21:29:13 UTC
Integrated into 'main-golden', will be available in build *201108101626* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/609d3c42f941
User: Tomas Hurka <thurka@netbeans.org>
Log: #200717: Don't enable eager modules that depend on autoload which needs a disabled regular module