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 27233 - Wrong information shown in the value column of the local variables
Summary: Wrong information shown in the value column of the local variables
Status: VERIFIED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-11 21:46 UTC by David-john Burrowes
Modified: 2003-11-27 08:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example of what the local variables looks like for me. (9.64 KB, image/gif)
2002-09-11 21:58 UTC, David-john Burrowes
Details
screenshot showing problem with values-column (12.99 KB, image/gif)
2002-09-11 22:18 UTC, Christoph Gerlach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David-john Burrowes 2002-09-11 21:46:52 UTC
I have some more observations:
- the name of a local variable is repeated in the 
column "value", hence the goal of easily finding
the value 
is not reached by the current solution of the local 
variables view.
- the type is repeated in the column "value" if
the value 
is a pointer to another object. Thus the column type 
provides additional information only for simple
datatypes. 
And the value column contains a lot (usally > 90%) of 
useless (duplicate) information (the most interesting 
information, the value, comes last).

If you want to stick with a TreeTableView I would
like to 
make the following suggestions:
- write the value in the format "value (type)" and
ommit 
the name
- write the type in the column "value" also for
simply 
datatypes
Comment 1 David-john Burrowes 2002-09-11 21:58:15 UTC
Created attachment 7385 [details]
Example of what the local variables looks like for me.
Comment 2 David-john Burrowes 2002-09-11 21:58:48 UTC
I wonder if you can include a screen shot of this, Christoph?  I've
never seen the name of a local variable repeated in the value column.
 I have also never seen the type repeated in the value column.  This
sounds like a serious problem.  
I've included a picture of what this looks like for me.  Is this
different than what you are seeing?
Comment 3 Christoph Gerlach 2002-09-11 22:18:28 UTC
Created attachment 7386 [details]
screenshot showing problem with values-column
Comment 4 David-john Burrowes 2002-09-11 22:53:34 UTC
Can you include some information about your configuration?  AS you saw
from my screen shot, I don't see information like you are seeing. 
What version of the IDE are you using?  What platform?  What version
of the JDK?
I've never seen the names show up in the value column like that.  I
completely agree that it is terrible!  What happens when you try to
edit these?  Can you change an integer value, for example?

Comment 5 Christoph Gerlach 2002-09-11 23:11:02 UTC
I am using:
JDK 1.4.1rc
Windows 2000
Netbeans 3.4 (I was using 3.3.2 before)

Yes, I can change an Integer. For me it writes "name = 1" 
and I can either change it to "name = 2" or just "2". Both 
seems to be processed correctly and is printed in the 
expected format "name = 2" afterwards.

Christoph Gerlach
Comment 6 Jan Jancura 2002-09-12 17:27:41 UTC
hmm, may be its problem of deserialization from provious version...
can you try to find & delete
\settings\system\Services\org-netbeans-modules-debugger-support-java-JavaProjectSettings.settings
in your settings folder?


 
Comment 7 Christoph Gerlach 2002-09-12 20:12:57 UTC
I have deleted \settings\system\Services\org-netbeans-
modules-debugger-support-java-JavaProjectSettings.settings 
and this indeed solves the problem with the values column 
for me. Thanks.

Christoph Gerlach
Comment 8 David-john Burrowes 2002-09-12 22:05:54 UTC
Does this reduce some of the unpleasantness you were reporting in 
http://www.netbeans.org/issues/show_bug.cgi?id=27129
?

I'm closing this issue.
Comment 9 Christoph Gerlach 2002-09-12 22:20:12 UTC
Yes, it helps, but there still is need for having scroll 
bars on the columns and getting the positions/presence of 
the columns saved to the settings.

Apart from this the issue is solved for me. Thank you for 
your quick cooperation.

Christoph Gerlach
Comment 10 Milan Kubec 2003-11-27 08:50:47 UTC
Verified.