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

Change ConvertForLoopOperation to avoid getting type from size() method #1618

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

jjohnstn
Copy link
Contributor

What it does

See issue.

How to test

Run JDT UI test suite and test with jdtls.

Author checklist

@jjohnstn jjohnstn self-assigned this Aug 27, 2024
@jjohnstn jjohnstn added the enhancement New feature or request label Aug 27, 2024
@mickaelistria
Copy link
Contributor

I confirm this patch fixes eclipse-jdtls/eclipse-jdt-core-incubator#748 , thank you!

@jjohnstn
Copy link
Contributor Author

@mickaelistria Great. I'll merge it for 4.34 M1 when the branches open.

- change ConvertForLoopOperation to change the logic that gets the
  type of size() method call to instead get the type of the expression
  calling it
- fixes eclipse-jdt#1617
@jjohnstn jjohnstn merged commit a85e491 into eclipse-jdt:master Sep 5, 2024
9 checks passed
@jjohnstn jjohnstn deleted the forloopchange branch September 5, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt ConvertForLoopOperation to work with Javac generated AST
2 participants