eclipse-jdt / eclipse-jdt/eclipse.jdt.core
[Bug] Autocompletion/Importing not working in 3 scenarios
- Dominant language
- Java
- Stars
- 237
- Forks
- 195
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 47
Description
There are 3 scenarions where autocompletion/importing does not work.
1.
`@NamedQueries({ @NamedQuery(name = InnerClass, query = "SELECT t FROM Test t WHERE t.id = :id") })
The InnerClass is recognized, but can not be imported into java class. The ineer class is defined within same class where annotation is present.`
2.
`@NamedQueries({ @NamedQuery(name = "test", query = "SELECT t FROM Test t WHERE t.id = :id"), @NamedQuery(name = "testOne", query = "SELECT t FROM Test t WHERE t.id = :id") })`
@NamedQueries can not be autocompleted and imported. The only way it is working is when there is only one item in array.
3.
`public @interface Test {
Class[] groups() default {};
List
}`
The List can not be autocompleted, the only way it is working is when Class[] groups() default {}; is commented.
Also, all scenarios are within project attached and well documented. Please take a look.
[vs-code-test.zip](https://github.com/redhat-developer/vscode-java/files/15050932/vs-code-test.zip)
Reference to the issue opened in the vscode-java repo. https://github.com/redhat-developer/vscode-java/issues/3585
Contributor guide
Assessment
This issue has not been assessed yet.