hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Animal sniffer Java API checking
Date Sun, 11 Jan 2015 15:58:03 GMT
On Sat, 2015-01-10 at 20:52 +0000, sebb wrote:
> I've been working on adding Animal Sniffer Plugin to Commons NET
> (intially, maybe add to the parent eventually).
> The plugin can compare the compiled code against an API signature for
> a specific Java version.
> It detects most incompatibilities, but should not be regarded as
> fool-proof - only a test with the target JVM will really show that.
> Commons has lots of components with lots of different Java targets,
> and it's not always convenient/possible to use the CI builds to detect
> such errors. So the plugin has its uses.
> Possibly less useful here, but if it is of interest I can provide a patch.
> Note: the NET pom code uses the build-helper to convert the target
> (say) 1.5 to the API signature name "java15" and the sniffer is
> invoked during the test phase.
> Currently the sniffer is always invoked; it can be skipped by defining
> animal.sniffer.skip
> However it would also be possible to add the code as an optional
> profile instead.
> Sorry, I've no idea if it can be used to check the Android code.

Hi Sebastian

It does sound useful given how often we end up breaking minimal JRE
compatibility. I would not bother with Java 1.5 any longer though as HC
is about to go 4.4 which is Java 1.6 based.  



To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message