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

Summary: Refactoring should update @RequestMapping and @PathVariable ids
Product: javaee Reporter: dusty <dusty>
Component: SpringAssignee: Martin Fousek <marfous>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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