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 238722

Summary: [Rename] Support rename on static import
Product: java Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Prox 2013-11-22 21:26:05 UTC
Now the rename refactoring cannot be invoked at static import. On normal import the rename it works as expected. This should be consistent.

Steps to reproduce:
1) have class org.ClassA with static method sMethod()
2) in another class have 
import static org.ClassA.sMethod;

-> the rename cannot be invoked on the 'sMethod'


Product Version: NetBeans IDE Dev (Build 20131121-463f9d09987b)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev