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 249449 - evaluate-by-hover functionality lost with respect to debugging of "default" method code
Summary: evaluate-by-hover functionality lost with respect to debugging of "default" m...
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
Depends on: 253295
  Show dependency tree
Reported: 2014-12-19 02:13 UTC by vince_stewart
Modified: 2015-07-22 06:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description vince_stewart 2014-12-19 02:13:11 UTC
Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Linux version 3.13.0-43-generic running on amd64; UTF-8; en_NZ (nb)

Hi, a small problem has emerged with the advent of "default" methods in Java

when doing line-by-line debugging, if you step into some "default" method
code, you lose the ability to display the value of a variable by hovering
the cursor over the variable name. The same applies to an expression
deliniated by a text selection. No error is displayed.

The various contextual values are maintained and viewable in the variables

This evaluate-by-hover functionality returns to normal when you step out of
the "default" method back into a method that is not another "default"
Comment 1 Martin Entlicher 2015-07-10 12:55:31 UTC
Fixed by changeset:   289593:7a49f924cb12
Comment 2 Quality Engineering 2015-07-17 01:19:42 UTC
Integrated into 'main-silver', will be available in build *201507170001* on (upload may still be in progress)

Log: #249449: Show variables in implemented interfaces also.
Comment 3 Jiri Kovalsky 2015-07-17 13:05:36 UTC
Product Version: NetBeans IDE Dev (Build 201507170001)
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. I only didn't get what you meant by "expression deliniated by a text selection" so if you could verify this buggy behavior yourself I would appreciate it. Thanks for this good catch Vince!
Comment 4 vince_stewart 2015-07-22 05:34:56 UTC
Response  to Jiri Kovalsky Comment 3.

Hi Jiri,

for "expression deliniated by a text selection", I apologise for the spelling error - should have been "expression delineated by a text selection".

I'll provide an example with a single a line of imaginary code:

String str=this.deriveStringFromTwoObjects(object1,this.getAnotherObject());

Lets say you select (using mouse or arrow keys with shift) the text "this.deriveStringFromTwoObjects(object1,this.getAnotherObject())".

With the text selected, if you hover the cursor over that selected text, Netbeans will normally display the result (including error throws) in a "hint" format.

I have observed normal functionality for Build 201507200001. Many thanks to all.
Comment 5 Jiri Kovalsky 2015-07-22 06:31:59 UTC
Thank you Vince for both explanation and confirmation that everything is back to normal.