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 197776 - Confusing comment for generated ApplicationConfig class
Summary: Confusing comment for generated ApplicationConfig class
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.0.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 05:47 UTC by Denis Anisimov
Modified: 2011-04-26 04:57 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 Denis Anisimov 2011-04-15 05:47:42 UTC
Steps to reproduce:
1) Create Web Project with JEE6 profile .
2) Create RESTful WS ( choose any wizard for this ).
In the result number of classes will be generated.
One of such class is ApplicationConfig extends javax.ws.rs.core.Application.
It is used for REST WS registration in the runtime.

The latter class contains confusing annotation :
/**
* This class is generated by the Netbeans IDE,
* and registers all REST root resources created in the project.
* Please, DO NOT EDIT this class !
*/ 
The text of this annotation should be corrected: user is able to edit this class.
It is legal to edit at least value of the annotation @javax.ws.rs.ApplicationPath.
The change of this value is convenient way to set resource path for REST WS.
Comment 1 Denis Anisimov 2011-04-25 13:14:50 UTC
changeset:   192675:95fef8d6f4b9
Comment 2 Quality Engineering 2011-04-26 04:57:00 UTC
Integrated into 'main-golden', will be available in build *201104260000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/95fef8d6f4b9
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#197776 - Confusing comment for generated ApplicationConfig class