Skip to content

Fix Debug Hover showing SuperClass Field's value in Subclass Field#930

Merged
SougandhS merged 1 commit intoeclipse-jdt:masterfrom
SougandhS:FixHoverThis
Apr 7, 2026
Merged

Fix Debug Hover showing SuperClass Field's value in Subclass Field#930
SougandhS merged 1 commit intoeclipse-jdt:masterfrom
SougandhS:FixHoverThis

Conversation

@SougandhS
Copy link
Copy Markdown
Member

@SougandhS SougandhS commented Apr 2, 2026

This commit adds an additional computation for finding the subclass class field if superclass has same field as of subclass

Fixes : #924

What it does

How to test

Author checklist

This commit adds an additional computation for finding the subclass
class field if superclass has same field as of subclass

Fixes : eclipse-jdt#924
@SougandhS SougandhS merged commit ab4aa4d into eclipse-jdt:master Apr 7, 2026
13 checks passed
@SougandhS SougandhS deleted the FixHoverThis branch April 7, 2026 04:14
break;
}
List<Field> fieldList = ref.allFields(); // Possible sub class fields with same name as of super class
fieldList.remove(fieldTmp);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SougandhS : This line will cause CME on next iteration if the break at line 287 will be not reached.

You can't modify the list while iterating it, you can only use fields.remove() here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will raise a fix now

@SougandhS SougandhS mentioned this pull request Apr 10, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants