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 236988 - Refactoring should update @RequestMapping and @PathVariable ids
Summary: Refactoring should update @RequestMapping and @PathVariable ids
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-10 13:22 UTC by dusty
Modified: 2016-07-07 08:55 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 dusty 2013-10-10 13:22:53 UTC
Consider the following method declaration inside a Spring controller class:

@RequestMapping(value = "/user/{id}")
public Object getUser(@PathVariable int id) {
...
}

Refactoring the "id" variable should change his name inside the RequestMapping value too, and viceversa, since they must be kept in sync to work properly.
Comment 1 Ondrej Brejla 2013-12-12 10:04:05 UTC
Reassigning. Not sure about right component.
Comment 2 Ralph Ruijs 2013-12-17 12:16:49 UTC
Spring support is part of our web cluster. Reassigning to web (again).
Comment 3 Vladimir Riha 2014-06-30 07:10:54 UTC
Probably Spring component should be the relevant one then? Reassigning.
Comment 4 Martin Fousek 2014-07-03 08:40:57 UTC
Switching to enhancements. I'm afraid that we don't have any refactoring support over annotations so for.
Comment 5 Martin Balin 2016-07-07 08:55:44 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss