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 203134 - Unclear why Analyze Javadoc produces no results
Summary: Unclear why Analyze Javadoc produces no results
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2011-10-05 11:50 UTC by gualtiero65
Modified: 2012-04-23 13:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Figure 1: the analyzer window (empty) after run on NetBeans platform project (286.30 KB, image/png)
2011-10-05 11:51 UTC, gualtiero65
Details
Figure 2: the analyzer window after run on simgle module (315.63 KB, image/png)
2011-10-05 11:52 UTC, gualtiero65
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gualtiero65 2011-10-05 11:50:26 UTC
[ BUILD # : 201110030601 ]
[ JDK VERSION : 1.6.27 ]

Hi,

in a Netbeans Platform Project (like the PaintApplication example) if I select
the project and run Tool --> Analyze Javadoc, the analyzer windows opens but it
is empty (see figure 1).

If a select a module for the same application (for example the module Paint)
and run "Analyze Javadoc" the Analyzer window contains all warnings. (see
figure 2).

If this is an intended behavior (i.e. the "Analyze Javadoc" cannot be run on
Projects but only on single modules) the Analyze menu item should be not
selectable when a project is selected.

By the way the "Analyze javadoc" works on a standard (non Netbeans Platform)
java project.

Gualtiero
Comment 1 gualtiero65 2011-10-05 11:51:38 UTC
Created attachment 111525 [details]
Figure 1: the analyzer window (empty) after run on NetBeans platform project
Comment 2 gualtiero65 2011-10-05 11:52:19 UTC
Created attachment 111526 [details]
Figure 2: the analyzer window after run on simgle module
Comment 3 Jesse Glick 2011-10-25 22:31:40 UTC
(In reply to comment #0)
> If this is an intended behavior (i.e. the "Analyze Javadoc" cannot be run on
> Projects but only on single modules)

It is intended. The suite project has no Java sources so it cannot be analyzed. You must select projects containing Java sources, such as the NBM (module) projects.

Probably you can multiselect all the module projects in a suite, though I cannot confirm - when I run Analyze Javadoc it is usually (but not always!) empty no matter what my selection is. Seems to be broken somehow.

> the Analyze menu item should be not selectable when a [suite] is selected.

Perhaps not.
Comment 4 Jan Becicka 2011-11-02 11:23:29 UTC
>Probably you can multiselect all the module projects in a suite, though I cannot confirm - when I run Analyze Javadoc it is usually (but not always!) empty no matter what my selection is. Seems to be broken somehow.

It is not broken. Javadoc is generated by default only for classes in public packages and most packages in module suites are not public. If you want to check also not-public packages, go to Options | Editor | Hints | Javadoc | Create Javadoc and check 
[x] Check also publicly unavailable packages

Analyze javadoc works with multi-selection
Comment 5 Jesse Glick 2011-11-10 16:02:42 UTC
So there probably remains a UI bug that if the analyzer is invoked on a project with no Java source roots (like the suite), or on a project with no public packages (like many modules), the Analyzer window should show a warning to this effect. (Or do not open the window at all but show an informational dialog.)
Comment 6 Jesse Glick 2011-11-10 16:02:53 UTC
...and reopening for that.
Comment 7 Jan Becicka 2012-04-23 13:20:27 UTC
no plans for fix