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 # : 200607290000 ] [ JDK VERSION : 1.6 ] Steps to reproduce: 1) Add a operation to a web service class, with a parameter (let's say, "user"). 2) After, select "Refactor -> rename" (to change from "user" to "username"). The @WebParam(name = "user") stay unchanged. Expected: @WebParam(name = "username")
This makes sense..., but what to do, if one have eg. @WebMethod(operationName = "greetUser") public String myOp(@WebParam(name = "user") String p) {...} generally the case when parameter of annotation which overrides java identifier name has a different value then the name of "referenced" java identifier? It would be probably better to not rename eg. @WebParam.name in this case.
IMHO, refactoring should apply only if parameter name matches @WebParam (default construction in NB wizards).