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 247219 - Warnings on "Generate Javadoc" for RCP modules
Summary: Warnings on "Generate Javadoc" for RCP modules
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 13:48 UTC by crosati
Modified: 2014-09-27 05:05 UTC (History)
1 user (show)

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 crosati 2014-09-17 13:48:47 UTC
Hi,

developing a NB RCP application, I'm using @NbBundle.Messages annotation in various classes. This requires static import of the Bundle methods.

This class is generated automatically by the annotation inside the <module>/build/classes-generated folder.

When I select the "Generate Javadoc" context menu item for a module, I will have many errors related to the impossibility for javadoc to find that Bundle classes.

The work-around I've found is to change line #296 of the harness/build.xml (inside the "javadoc" target) from:

    <sourcepath location="${src.dir}"/>

to:

    <sourcepath>
        <pathelement location="${src.dir}"/>
        <pathelement location="${build.dir}/classes-generated"/>
    </sourcepath>

Now I'm asking if this could be the correct solution, and if could be integrated into next Netbeans releases.

Best regards,
Claudio


Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_20
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Comment 1 Martin Kozeny 2014-09-26 08:48:54 UTC
Thank you for your catch, you're right. Fixed in:
https://hg.netbeans.org/core-main/rev/77e0e5a3a7e0
Comment 2 Quality Engineering 2014-09-27 05:05:27 UTC
Integrated into 'main-silver', will be available in build *201409270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/77e0e5a3a7e0
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #247219: Warnings on "Generate Javadoc" for RCP modules.