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 81430 - [55cat] Renaming method parameter doesn't rename @WebParam
Summary: [55cat] Renaming method parameter doesn't rename @WebParam
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@webservices
Depends on:
Reported: 2006-07-30 04:51 UTC by brviking
Modified: 2006-07-30 17:05 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description brviking 2006-07-30 04:51:32 UTC
[ 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")
Comment 1 Lukas Jungmann 2006-07-30 13:03:50 UTC
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. in this case.
Comment 2 brviking 2006-07-30 17:05:12 UTC
IMHO, refactoring should apply only if parameter name matches @WebParam (default
construction in NB wizards).