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 253493 - debugger variables tooltips displays bogus values instead of null
Summary: debugger variables tooltips displays bogus values instead of null
Status: VERIFIED DUPLICATE of bug 252138
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-15 09:12 UTC by vaxquis
Modified: 2015-07-21 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot to illustrate the issue (324.59 KB, image/jpeg)
2015-07-15 09:12 UTC, vaxquis
Details
Project which does neither reproduce the described problem in the latest trunk builds nor in 8.0.2 (14.67 KB, application/zip)
2015-07-16 11:50 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vaxquis 2015-07-15 09:12:21 UTC
Created attachment 154644 [details]
screenshot to illustrate the issue

Repro steps:
class A { Object o; public void foo() { Object z = o; } }
// in some other code
A a = new A();
a.foo();
a) create an instance `i` of some class with some field null,
b) create a breakpoint on `Object z = o;`,
c) debug, hit the breakpoint, and hover over the field,
d) instead of o.toString(), a.toString() is displayed on the tooltip. 

Screenshot attached.

Note: this is *not* a duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=8801 (since that bug is ancient and has different appearance)
Comment 1 Martin Entlicher 2015-07-15 09:47:43 UTC
This issue is already fixed in dev builds.
Comment 2 Jiri Kovalsky 2015-07-16 11:50:04 UTC
Created attachment 154676 [details]
Project which does neither reproduce the described problem in the latest trunk builds nor in 8.0.2

I am sorry but I can't reproduce the problem in both 8.0.2 and latest trunk build.
Comment 3 Jiri Kovalsky 2015-07-16 11:51:16 UTC
Product Version: NetBeans IDE Dev (Build 201507150001)
Updates: Updates available
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

Verified as fixed. In case you can reproduce this issue in current daily builds, don't hesitate to reopen the bug.
Comment 4 vaxquis 2015-07-16 12:27:28 UTC
I 100% certainly *had* and still have this issue in 8.0.2, though honestly I haven't tried dailies yet. Still, my repro was kind of lacking - the very code I posted is just the idea of when I got the bug - in clean-room setting it *doesn't* show this behaviour, and it seems it's a kind of https://en.wikipedia.org/wiki/Heisenbug - it *does* occur regularly to me while debugging, and it was always when the variable was null. I'm not able to reproduce it consistently, and it occurs virtually only in non-trivial applications in non-trivial situations. Still, it *does* happen on 8.0.2 (I've had one yesterday on fully-up-to-date 8.0.2) - IMO the best course of action would be to find a clear repro case for 8.0.2, and then try it on dailies.

I'm out of ideas for this one ATM, will try to figure a better repro (at least for 8.0.2) when I get my hands on some free time. If anyone can try finding one, I'd be most grateful.
Comment 5 vaxquis 2015-07-16 12:31:07 UTC
I'm marking this as RESOLVED INCOMPLETE until a good test case is found for 8.0.2, showing the defect - as per Jiri Kovalsky, I think that without a test where we can safely say what causes the bug in 8.0.2, we can't be sure it won't happen in dailies.
Comment 6 Martin Entlicher 2015-07-20 13:56:03 UTC
Isn't this a duplicate of issue #252138?
Comment 7 vaxquis 2015-07-21 13:21:53 UTC

*** This bug has been marked as a duplicate of bug 252138 ***
Comment 8 Jiri Kovalsky 2015-07-21 13:24:26 UTC
Verifying then.
Comment 9 vaxquis 2015-07-21 13:25:57 UTC
(In reply to Martin Entlicher from comment #6)
> Isn't this a duplicate of issue #252138?

Yup. Good catch on that one - I missed it while looking for dupes, it obviously *is* the exact problem I had. I marked it as a dupe, hopefully it's already solved in nightlies.