Refactor AbortCompilation to allow non compiler code see the root cause #4807
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After 0dbe296 &
15c8bfb JDT UI may report errors where none should be reported because it is supposed to be "silent cancellation".
This change uses standard Java "cause" in the
AbortCompilationand removes two different public fields used to keep exceptions before.An extra change will be needed in at least one place in the UI, where
org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(ITypeRoot, IProgressMonitor)should be able to inspect the provided "cause" of theRuntimeExceptionand handle it in same way asOperationCanceledException.Note:
AbortCompilationitself is not visible outside compiler code, so this type can't be used in UI for any checks.Fixes eclipse-jdt/eclipse.jdt.ui#2769