"suppress javac warning “…is internal proprietary api and may be removed in a future release”" Code Answer

2

this particular warning cannot be suppressed. at least not officially.

the warning about proprietary api means that you should not use the api which causes the warning. sun does not support such api and the warning will not be suppressible.

if you're particularly determined, you can use the highly undocumented javac -xdignore.symbol.file flag which will compile your program against sun's internal rt.jar rather than the public-facing symbol file ct.sym. rt.jar doesn't produce this warning.

By DMD on January 28 2022

Answers related to “suppress javac warning “…is internal proprietary api and may be removed in a future release””

Only authorized users can answer the Search term. Please sign in first, or register a free account.