<p dir="ltr">That would be great rather than needing another path.</p>
<div class="gmail_quote">On Apr 17, 2015 8:13 AM, "David M. Lloyd" <<a href="mailto:david.lloyd@redhat.com">david.lloyd@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The good news is, there's talk that with Java 9, the JDK will include<br>
(in some form) APIs for previous versions, so that if you want to target<br>
an earlier version, you can link against its runtime as well.<br>
<br>
On 04/17/2015 08:11 AM, Steve Ebersole wrote:<br>
> I ran into issues with using Java 8 to run my build but targeting Java 7<br>
> for most artifacts. I would highly suggest applying a solution based on<br>
> AnimalSniffer or supplying the Java 6/7 tools.jar for bootclasspath to<br>
> javac. Helps catch these types of issues<br>
><br>
> On Apr 17, 2015 8:04 AM, "Darran Lofthouse" <<a href="mailto:darran.lofthouse@jboss.com">darran.lofthouse@jboss.com</a><br>
> <mailto:<a href="mailto:darran.lofthouse@jboss.com">darran.lofthouse@jboss.com</a>>> wrote:<br>
><br>
> Quick warning for anyone developing using Java 8 but on projects still<br>
> dependent on Java 7.<br>
><br>
> Normally this is fine, as an engineer you make sure you don't use any<br>
> new language features or call new APIs and generally it all works.<br>
><br>
> With Java 8 there is one addition gotcha, Java 8 adds support for<br>
> default method implementations on interfaces, to add to this some<br>
> pre-existing methods have now been replaced with default<br>
> implementations. The side effect being it is easy to miss that you have<br>
> a method missing from a class and it will not be picked up till it is<br>
> compiled on Java 7.<br>
><br>
> e.g. On java.util.Iterator the remove method is now default so classes<br>
> that implement this interface no longer need to implement that method<br>
> unless they really are providing an implementation of that method.<br>
><br>
> Regards,<br>
> Darran Lofthouse.<br>
><br>
> _______________________________________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a> <mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
<br>
--<br>
- DML<br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</blockquote></div>