We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The GModelElementBuilder.addAll() method should accept lists of different types, as long as it extends GModelElement.
i.e. Currently, this fails to compile:
List<GNode> nodeList = new ArrayList<>(); nodeList.add(...); parent.addAll(nodeList); // error
A good explanation why the Java compiler rejects List<subclass> as argument can be found in this stackoveflow question.
List<subclass>
It fixes by changing function signature from:
public E addAll(final List<GModelElement> children)
to
public E addAll(final List<? extends GModelElement> children)
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue! This indeed seems like an oversight. Would you be able to open a PR to fix it @dmm9? Thank you!
Sorry, something went wrong.
yes I am already working on it :)
Fixes eclipse-glsp/glsp#1199
0947cf5
eclipse-glsp/glsp-server@d62a1cd
Fixes eclipse-glsp/glsp#1199 (eclipse-glsp#223)
3586921
No branches or pull requests
The GModelElementBuilder.addAll() method should accept lists of different types, as long as it extends GModelElement.
i.e. Currently, this fails to compile:
A good explanation why the Java compiler rejects
List<subclass>
as argument can be found in this stackoveflow question.It fixes by changing function signature from:
to
The text was updated successfully, but these errors were encountered: