-
Notifications
You must be signed in to change notification settings - Fork 26
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
IntelliJ 2024.2: ProcessCanceledException class hierarchy changed. Resolve issues that arise from this API change. #767
Comments
I haven't found the exact usage of the following in our code. I found usages of the following
I have made Fixes to the above occurrences. |
@vaisakhkannan I've moved this back to parked. We're not targeting IntelliJ 2024.2 for 24.0.8. Will revisit when we do move up to 2024.2. |
…//github.com/vaisakhkannan/liberty-tools-intellij into OpenLiberty#767-FIx-ProcessCanceledException
…ception Fix usage of ProcessCanceledException and CancellationException in catch block
The changes in the above PR 901 have been merged into the feature branch |
@vaisakhkannan I noticed the PR was merged on to the feature branch without a code review. Adding review comments here about the code that was changed. It would be desirable to refactor out common code so that the next time the exception handling requires an update, it won't require changes in so many places. For instance, this could be accomplished by writing a method which accepts a function (i.e. a lambda expression) as a parameter. The method would call the function which is wrapped in a try/catch. If the exception handling needs to be updated again then you only need to update the code in one place. In general if you find that you're making the same change in multiple places it could be a sign of duplicated code which could be improved. |
…xception Fix usage of ProcessCanceledException to support 2024.2
Closing this issue since the PR is merged |
…FIx-ProcessCanceledException Fix usage of ProcessCanceledException to support 2024.2
Change in IntelliJ 2024.2 JetBrains/intellij-community@12e78f1#diff-53953a080bfbb7f3d529336a7318cfde6b06098f5fbb136f7c58c3fad831f500
See resolution in LSP4iJ: redhat-developer/lsp4ij#293.
LTI has multiple places with multi catch of
CancellationException
andProcessCanceledException
and will face the same problem.LSP4iJ compilation errors that occurred with IntelliJ 2024.2:
The text was updated successfully, but these errors were encountered: