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.
[ 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"); }
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
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.
It's a good idea for enhancement