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.
I tried to rename method abs in the following class to 'cos': package aaa; import static java.lang.Math.abs; import static java.lang.Math.cos; import static aaa.MyAbsMethod.abs; class MyAbsMethod { public static double abs(double x) { return x; } } but then static import (third import) was not renamed and it causes compilation error
Static imports seems to be really missed by the rename. Thanks for the report.
For the record, static imports are special case. It is not possible just rename them in all cases since the import may be used for several class members. Like in the following case: class MyAbsMethod { public static double abs; public static double abs(double x) { return x; } public static double abs(double x, double y) { return x; } } import static MyAbsMethod.abs; class Class2 { void m() { abs = 2; abs(1); abs(0, 1); } }
*** This issue has been marked as a duplicate of 90769 ***
verified