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 142859 - [65cat] refactor doesn't catch annotations or javadocs
Summary: [65cat] refactor doesn't catch annotations or javadocs
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-04 22:21 UTC by ranbato
Modified: 2008-08-15 14:57 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ranbato 2008-08-04 22:21:36 UTC
[ BUILD # : 20080802 ]
[ JDK VERSION : 1.6.0_06 ]

It would be really nice if I rename a parameter in a webservice
method if it would rename the webservice annotations and javadoc
contents as well.  For example, if I select installDate with CTRL+R
and rename it to registrationDate.

   /**
     * Web service operation to allow registration of products.
     * @param productName
     * @param productVersion
     * @param productSerial
     * @param installDate 
     * @return
     */
    @WebMethod(operationName = "registerProduct")
    public ServiceReturn registerProduct(@WebParam(name =
"productName")
    String productName, @WebParam(name = "productVersion")
    String productVersion, @WebParam(name = "productSerial")
    String productSerial, @WebParam(name = "installDate")
    String installDate) {

        System.out.println("Product: "+ productName);
        System.out.println("Version: " + productVersion);
        System.out.println("Serial: " + productSerial);
        System.out.println("Date: " + installDate);

        return new ServiceReturn(true,"AuthCode");
    }
Comment 1 Jiri Prox 2008-08-05 07:43:00 UTC
The rename in javadoc works when you check 'Apply rename in comments' in rename dialog.
The rest of this issue should be handled on websvc side
Comment 2 ranbato 2008-08-07 15:10:18 UTC
I didn't get the dialog, I just did the change in-line.  This might be an overlooked use-case for the in-line renaming.
(or maybe it was just deemed less important).  It would be nice if the functionality defaulted to what was used in the
dialog or something.
Comment 3 Milan Kuchtiak 2008-08-15 14:57:20 UTC
It's a good idea for enhancement