When using a different JDK to compile (or any build, really), you need to
specify a boot classpath if you want to ensure you're only linking against
those APIs. It's possible, but until Maven adds better support for that, it
might be hard to do.

That sniffer plugin, on the other hand, could be good. I know we've
accidentally used 1.7 APIs in the past briefly. And I'm using 1.7 at work
as well and am pushing for 1.8 as soon as all our dependencies are ready
(waiting on the next version of Karaf; all the components themselves have
updated to work properly with 1.8, but such is the life of working with
higher level projects like that).


On 20 August 2014 08:47, Gary Gregory <[email protected]> wrote:

> On Wed, Aug 20, 2014 at 8:51 AM, Gary Gregory <[email protected]>
> wrote:
>
>> Isn't there a maven plugin that detects Java api usage? Animal sniffer or
>> some such?
>>
>
> Ah,
> http://mojo.codehaus.org/animal-sniffer-maven-plugin/examples/generating-java-signatures.html
>
> Gary
>
>
>>
>> Gary
>>
>>
>> -------- Original message --------
>> From: Ralph Goers
>> Date:08/20/2014 02:18 (GMT-05:00)
>> To: Log4J Developers List
>> Subject: Re: FindBugs 3.0.0
>>
>> Specifying a target of 1.6 causes the version to be fine. However your
>> other objection makes sense as it is easy to let new methods creep in.  I
>> think the build needs to be able to run with any of Java 6, 7, or 8.
>>  However, I think Findbugs runs as part of the site build. I really don't
>> care if Java 8 is required for that so long as the release build uses Java
>> 6.
>>
>> Sent from my iPad
>>
>> On Aug 19, 2014, at 9:34 PM, Remko Popma <[email protected]> wrote:
>>
>> Isn't the class version different when building on java 7? Java 6 won't
>> run classes built with java 7 I think.
>>
>> If we can just do the Javadoc that should  be ok.
>>
>> Sent from my iPhone
>>
>> On 2014/08/20, at 12:37, Gary Gregory <[email protected]> wrote:
>>
>> If we want to use the current version of FindBugs 3.0.0, instead of
>> 2.5.x, we need to build with Java 7 instead of 6. The target JRE can still
>> be Java 6 of course.
>>
>> Thoughts?
>>
>> Gary
>>
>> --
>> E-Mail: [email protected] | [email protected]
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>>
>
>
> --
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <[email protected]>

Reply via email to