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.
1. Assume following ClassE: package simpleproject123; public class ClassE { public final int MY_INT = 0; public final String MY_CONST = getVal(MY_INT); public void method() { String s = getVal(MY_INT); System.out.println(s); } public String getVal(int val) { return "someValue"; } } 2. I expected, that "public final String MY_CONST = getVal(MY_INT);" is right defined constant agreement with java documentation because no hints are presented in editor. 3. So, when I selected "getVal(MY_INT)" in method() body I expected I Could Introduce Constant by using Alt+Shift+C instead i get "Invalid Selection" Error. >> I think there should be either hint that "public final String MY_CONST = getVal(MY_INT);" is deprecated if it is (I don't know) or option Introduce Constantn should be allowed on "getVal(MY_INT)" at method() body. Product Version: NetBeans IDE 7.4 RC1 (Build 201309152201) Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)