Suppress warnings for internal proprietary API - Signal and SignalHandler #402
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.
Suppress warnings for internal proprietary API - Signal and SignalHandler warnings
Discussed in #398
Solution based on https://stackoverflow.com/questions/9613857/cannot-stop-ant-from-generating-compiler-sun-proprietary-api-warnings/34966719#34966719 and https://stackoverflow.com/questions/13855700/suppress-javac-warning-is-internal-proprietary-api-and-may-be-removed-in-a-f/42406330#42406330 threads
Simple
@SuppressWarnings
is not working as warning about proprietary API is tricky beast.For Java 6 there was no way to suppress them - https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6476630
For Java 7 and 8 the way is via
-XDenableSunApiLintControl
.For Java 9+
-XDenableSunApiLintControl
way doesn't work and I wasn't able to find any solution for Java 9+.So this is just partial fix just for Java 8, once the base moves to Java 11 warnings will be back.