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

missing pieces in the AST: parser seems to skip member value pair name when there is a . at the end #3421

Open
martinlippert opened this issue Dec 9, 2024 · 1 comment

Comments

@martinlippert
Copy link

Similar to #3155, I am working on code completion based on AST nodes and came across this case for a field declaration, as another follow-up from #3156:

@Value(value=spring.)

results in an AST that looks like:

@Value(value.$missing$)

It looks like the parser turns this annotation into a SingleMemberAnnotation with a QualifiedName, where it should keep the usual member value pair structure.

(using org.eclipse.jdt.core 3.40.0)
@fyi @mickaelistria and @stephan-herrmann)

@martinlippert
Copy link
Author

This case works nicely:

@Value(value=spring.pr)

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

1 participant