Skip to content

Conversation

srikanth-sankaran
Copy link
Contributor

@srikanth-sankaran srikanth-sankaran commented May 18, 2023

What it does

According to JVMS 4.7.7, the EnclosingMethod is supposed to point to the closest lexically enclosing method of the class. ECJ incorrectly mentions the lambda implementation method which doesn't meet the criteria.

With this fix, we reach for and encode the right method.

Fixes #975

Author checklist

incorrectly pointing to lambda implementation
@srikanth-sankaran srikanth-sankaran requested a review from mpalat May 18, 2023 23:43
@srikanth-sankaran
Copy link
Contributor Author

@mpalat, Can you please review this for RC1 please ? TIA

@srikanth-sankaran srikanth-sankaran added this to the 4.29 M1 milestone Jun 1, 2023
@srikanth-sankaran srikanth-sankaran merged commit d152fdd into eclipse-jdt:master Jun 8, 2023
@srikanth-sankaran srikanth-sankaran deleted the GH975 branch June 8, 2023 06:18
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.

[Compiler] Reflection fails due to class file's EnclosingMethod attribute incorrectly pointing to lambda implementation
1 participant