Thanks for that Uwe!
On 17/12/2013 13:13, Uwe Schindler wrote:
Hey Rory, I already left a comment on the blog entry - Oracle should have
looked whats already available on the Open Source market!
We use a more generic tool available via Maven Central that does the same since
a few years:
https://code.google.com/p/forbidden-apis/
It was written by me, but it is used by more and more projects, especially those who need
100% correct locale, charset and timezone independnetness (like text processing tools).
The main use-case of this tool it to scan your application classes for things like
calling opening text files without giving a charset and fail the build. This tool also
allows to find calls to internal JDK apis. We use this tool in Lucene. See the docs, you
can pass internalRuntimeForbidden="true" and it will fail your build:
https://code.google.com/p/forbidden-apis/wiki/AntUsage or
https://code.google.com/p/forbidden-apis/wiki/MavenUsage. It is also available as command
line tool: https://code.google.com/p/forbidden-apis/wiki/CliUsage
See also my blog post:
http://blog.thetaphi.de/2012/07/default-locales-default-charsets-and.html
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]
-----Original Message-----
From: Rory O'Donnell [mailto:[email protected]]
Sent: Tuesday, December 17, 2013 1:50 PM
To: Uwe Schindler; Dawid Weiss
Cc: [email protected]; [email protected]; TOPIC,DALIBOR;
BORG,CECILIA; [email protected]
Subject: New JDK 8 tool: jdeps
Hi Uwe/Dawid,
Here's a blog from Erik Costlow on a new tool in JDK 8 that lets you analyze
your code for dependencies on JDK internal APIs :
https://blogs.oracle.com/java-platform-
group/entry/closing_the_closed_apis
Please let me know if you have any feedback - I'd be interested to hear if you
use any internal APIs.
Rgds,Rory
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]