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

org.eclipse.lsp4jakarta.commons.JavaCursorContextKind.forValue() throws an IllegalArgumentException when passed the value from its own NONE constant. #520

Open
mrglavas opened this issue Mar 8, 2024 · 1 comment

Comments

@mrglavas
Copy link

mrglavas commented Mar 8, 2024

This was discovered while testing completion support in Liberty Tools for IntelliJ. See discussion here: OpenLiberty/liberty-tools-intellij#681. The problem is that the forValue() method assumes that all of the values are 1 more than their regular enum ordinal value which is true for all of the constants except for NONE whose value is 2000.

@mrglavas
Copy link
Author

mrglavas commented Mar 8, 2024

Since JavaCursorContextKind is a copy of an enum class that is also in LSP4MP, LSP4MP also has this issue.

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