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 74664 - Can not set value to expression
Summary: Can not set value to expression
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 05:06 UTC by _ gtzabari
Modified: 2010-04-29 09:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2006-04-10 05:06:50 UTC
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.
Comment 1 Martin Entlicher 2006-04-11 22:45:44 UTC
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.
Comment 2 Martin Entlicher 2006-04-11 22:49:56 UTC
FYI: I've submitted issue #74871.
Comment 3 Martin Entlicher 2008-03-25 17:19:03 UTC
Fixed: changeset:   75429:3814066df925
http://hg.netbeans.org/main/rev/3814066df925
Comment 4 Quality Engineering 2010-04-29 09:28:46 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.