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.
dev build 200604051800 If I try modify the value of a final variable in the watch window, I get an error message: "Can not set value to expression". I consider this a bug because I am expecting one of two things to happen: 1) Netbeans allows me to make the modification 2) Netbeans fails with an error "final variables cannot be modified" The current error message is misleading in that it refers to an expression, whereas I am associate "foo.getSize()" to be an expression, not simple variable lookups.
I've found that the message is in fact not localizable! It's hard-coded. It looks like we should scan the codebase for all hard-coded strings. I'm not sure we'll be able to distinguish what's going on. It's strange that you can set values to local final variables, but not to final fields! This is inconsistent, but this is likely a JDI issue... I'll look at what we can do.
FYI: I've submitted issue #74871.
Fixed: changeset: 75429:3814066df925 http://hg.netbeans.org/main/rev/3814066df925
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.