Skip to content

Debugger shows wrong value for a private field defined also in the super class #924

@iloveeclipse

Description

@iloveeclipse

Found while reviewing eclipse-platform/eclipse.platform#2582.

Change ToggleStepFiltersAction to have constructor for better reproduction and add breakpoint in the constructor, as shown in the screenshot.

After ToggleStepFiltersAction.fInitialized value is set to false, hover over the ToggleStepFiltersAction.fInitialized to see the value.
It shows true !!! which is where you start to believe in magic, until you notice that the super class DebugCommandAction also has private field with exact same name but different value. OMG.

Image

Obviously, debugger shows wrong velue on hover.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions