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

Suppress warnings for internal proprietary API - Signal and SignalHandler #402

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

rsvoboda
Copy link
Member

@rsvoboda rsvoboda commented Jan 2, 2019

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.

@gsmet
Copy link
Member

gsmet commented Jan 3, 2019

Hi @rsvoboda ,

Can't get excited about adding a compilation parameter which will be useless as soon as GraalVM moves its target to JDK 11.

I would vote for just adding the @SuppressWarnings("restriction") to silence the warnings in the IDE and be done with it.

@rsvoboda
Copy link
Member Author

rsvoboda commented Jan 3, 2019

Thank you for the feedback, I will add @SuppressWarnings("restriction") and revert changes in pom.xml. This is probably the least disturbing change.

@rsvoboda rsvoboda force-pushed the SuppressWarningsApplicationClass branch from 6acc627 to c88f333 Compare January 3, 2019 12:34
@rsvoboda rsvoboda force-pushed the SuppressWarningsApplicationClass branch from c88f333 to d43e8f7 Compare January 3, 2019 12:35
@rsvoboda
Copy link
Member Author

rsvoboda commented Jan 3, 2019

@gsmet PR was updated and all checks passed

@gsmet
Copy link
Member

gsmet commented Jan 3, 2019

Perfect, thanks!

@gsmet gsmet merged commit 498a763 into quarkusio:master Jan 3, 2019
@gsmet gsmet added this to the 0.5.0 milestone Jan 3, 2019
@rsvoboda rsvoboda deleted the SuppressWarningsApplicationClass branch March 7, 2019 11:48
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

Successfully merging this pull request may close these issues.

2 participants