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
Bug 573327 - invalid suggestions for loop variable missing type #657
Comments
jjohnstn
added a commit
to jjohnstn/eclipse.jdt.ui-1
that referenced
this issue
Jul 5, 2023
- fixes eclipse-jdt#657 - add new code in UnresolvedElementsSubProcessor to recognize when a lower-case enhanced for-loop variable that has no type causes a "create loop variable xxxx" proposal and then do not suggest creating new types, records, etc... - modify existing test in UnresolvedTypesQuickFixTest
3 tasks
github-actions bot
pushed a commit
to jjohnstn/eclipse.jdt.ui-1
that referenced
this issue
Jul 14, 2023
- fixes eclipse-jdt#657 - add new code in UnresolvedElementsSubProcessor to recognize when a lower-case enhanced for-loop variable that has no type causes a "create loop variable xxxx" proposal and then do not suggest creating new types, records, etc... - modify existing test in UnresolvedTypesQuickFixTest
jjohnstn
added a commit
that referenced
this issue
Jul 14, 2023
…pe (#658) - fixes #657 - add new code in UnresolvedElementsSubProcessor to recognize when a lower-case enhanced for-loop variable that has no type causes a "create loop variable xxxx" proposal and then do not suggest creating new types, records, etc... - modify existing test in UnresolvedTypesQuickFixTest
fedejeanne
pushed a commit
to fedejeanne/eclipse.jdt.ui
that referenced
this issue
Aug 23, 2023
…pe (eclipse-jdt#658) - fixes eclipse-jdt#657 - add new code in UnresolvedElementsSubProcessor to recognize when a lower-case enhanced for-loop variable that has no type causes a "create loop variable xxxx" proposal and then do not suggest creating new types, records, etc... - modify existing test in UnresolvedTypesQuickFixTest
fedejeanne
pushed a commit
to fedejeanne/eclipse.jdt.ui
that referenced
this issue
Aug 23, 2023
…pe (eclipse-jdt#658) - fixes eclipse-jdt#657 - add new code in UnresolvedElementsSubProcessor to recognize when a lower-case enhanced for-loop variable that has no type causes a "create loop variable xxxx" proposal and then do not suggest creating new types, records, etc... - modify existing test in UnresolvedTypesQuickFixTest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From: https://bugs.eclipse.org/bugs/show_bug.cgi?id=573327
For the following snippet taken from UnresolvedTypesQuickFixTest.testForEachMissingType()
A number of quick fix suggestions are made. The first one:
Create loop variable 'element' seems to be the only valid one.
Among others are:
Create enum element
Create class element
Create interface element
Change to ElementType (java.annotation)
Change to Statement (java.sql)
Fix project setup...
There can be many more class suggestions when running in a typical Eclipse. All of them but the first one are invalid choices.
The text was updated successfully, but these errors were encountered: