You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I hover over a variable, the variable's reference is different from the one shown in the Variables view. The correct reference is shown by the Variables view. This happens when the calling method is inherited.
Expected Behavior
The debug tooltip should contain the same information as the Variables view.
This project consists of 3 classes and an interface:
IElement - The base interface
Element - The parent class
SamePkgElement - A child class from the same package
OtherPkgElement - A child class from another package
The Element class contains a public field of type IElement called element, and implements the iterateElements() method which goes recursively down in the hierarchy and prints something in the console.
The Main.main() function contains a chain of 4 IElement objects which in a top-bottom hierarchy view look like this:
Element
SamePkgElement
OtherPkgElement
Element
When adding a breakpoint in the Element.iterateElements() method, the second time (i.e. from the SamePkgElement) and the third time (i.e. from the OtherPkgElement) the debugger stops at this breakpoint, and when hovering over the element field, its reference shown in the tooltip differs from the one in the Variables view. You can see that in the snapshots below:
The first time and the last time the debugger hits that breakpoint, the value is correct. The problem seems to be only when the calling method is inherited.
The text was updated successfully, but these errors were encountered:
Hello!
When I hover over a variable, the variable's reference is different from the one shown in the Variables view. The correct reference is shown by the Variables view. This happens when the calling method is inherited.
Expected Behavior
The debug tooltip should contain the same information as the Variables view.
Steps to Reproduce
element.iterateElements()
) in the Element.java fileContext (Environment)
Tested eclipse SDK versions: E4.19, E4.22, E4.24, E4.28, E4.30 (latest)
Eclipse JDK: GraalVM 17.0.3+7-jvmci-22.1-b06
Project execution environments: GraalVM 17.0.3+7-jvmci-22.1-b06, OpenJDK 1.8.0_322
OS: Ubuntu 22.04
Arch: x86_64
GTK: 3.24.33
VM Args: -Xmx 4G
Detailed Description
This project consists of 3 classes and an interface:
The Element class contains a public field of type IElement called element, and implements the
iterateElements()
method which goes recursively down in the hierarchy and prints something in the console.The
Main.main()
function contains a chain of 4 IElement objects which in a top-bottom hierarchy view look like this:When adding a breakpoint in the
Element.iterateElements()
method, the second time (i.e. from the SamePkgElement) and the third time (i.e. from the OtherPkgElement) the debugger stops at this breakpoint, and when hovering over the element field, its reference shown in the tooltip differs from the one in the Variables view. You can see that in the snapshots below:The first time and the last time the debugger hits that breakpoint, the value is correct. The problem seems to be only when the calling method is inherited.
The text was updated successfully, but these errors were encountered: