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

[critical] Improve lambda breakpoints when using gradle build server #531

Open
gayanper opened this issue Dec 29, 2023 · 2 comments
Open

Comments

@gayanper
Copy link
Contributor

gayanper commented Dec 29, 2023

When using gradle build server, the lambda method name tends to change on large file which I'm not sure of the reason which I have not looked into Java Language Spec on how lambda method names are computed.

What was observed is the method name has the format classMethodName$lambda$#. This cause method name mismatches due to the JDT method name and JDI method name is different.

@gayanper gayanper changed the title Improve lambda breakpoints when synthetic variables are present Improve lambda breakpoints when using gradle build server Dec 29, 2023
@gayanper gayanper changed the title Improve lambda breakpoints when using gradle build server [critical] Improve lambda breakpoints when using gradle build server Dec 29, 2023
@gayanper
Copy link
Contributor Author

@testforstephen could we use the source location information of the method or something similar to narrow down the method to match signature instead of using the name ? Not using the name could resolve this issue.

@testforstephen
Copy link
Contributor

gradle build server uses the javac to compile the code, which may use different rules to name the generated classes. Do you have a concrete use case to explain the issue further?

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

No branches or pull requests

2 participants