Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitive arrays and Lambdas type on variables view #595

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SougandhS
Copy link
Contributor

@SougandhS SougandhS commented Jan 15, 2025

#592

This commit provides fix for not showing primitive arrays and lambdas correctly in variables view.

Fixes : #592

Before fix -


image


After -
image

What it does

How to test

Author checklist

@@ -1917,11 +1924,20 @@ public String removeQualifierFromGenericName(String qualifiedName) {
/**
* Return the simple name from a qualified name (non-generic)
*/
@SuppressWarnings("nls")
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this work for ShowQualifiedNames? While it is unlikely, technical any class could be named "$Lambda" so it would be better if somehow this could be solved by not using text replacement only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

with ShowQualifiedNames enabled it will show its original value eg. $$Lambda.0x000000f001007608 . Unfortunately vm only gives this as IValue for every lambdas compared to other objects. so only went with text replacement.

@SougandhS SougandhS force-pushed the primitiveArrayDebugView branch from 952e6bc to 344ebaf Compare January 16, 2025 04:28
eclipse-jdt#592

This commit provides fix for not showing primitive arrays and lambdas
correctly in debug view.

Fixes : eclipse-jdt#592
@SougandhS SougandhS force-pushed the primitiveArrayDebugView branch from 344ebaf to 69062bd Compare January 19, 2025 14:26
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.

Primitive array's signature is not shown in variables view
2 participants