Review Request for 8029216: (jdeps) Provide a specific option to report JDK internal APIs
mandy.chung at oracle.com
Wed Nov 27 16:46:46 UTC 2013
On 11/27/2013 7:52 AM, Dalibor Topic wrote:
> On 11/27/13 1:04 PM, Alan Bateman wrote:
>> On 26/11/2013 23:59, Mandy Chung wrote:
>>> This is a simple patch that adds a new jdeps -jdkinternals option to make it easier for developers to find dependencies on the JDK internal APIs:
>> This looks good (and I can't think of a better name for the option). Do you think this needs a test as otherwise this option will not be exercised?
I will add a test for this option.
> -jdkinternals doesn't necessarily imply that using the JDK internal APIs is dangerous. Maybe calling it -warn would be better, and offer a path forward to in the future warn about other objectionable dependency constructs (circles, etc.).
By default it already highlights any dependency on JDK internal APIs.
This option is to make it easier for developers to filter them and I
think -jdkinternals is more obvious. I'll keep the -warn idea to
explore in the future.
More information about the core-libs-dev