[infinispan-dev] Infinispan Test language level to Java 8?
Adrian Nistor
anistor at redhat.com
Wed Apr 30 08:12:53 EDT 2014
> Another potential problem, as rightly pointed out by Will on IRC, is
that it would also cause issues for anyone trying to run our testsuite
with JDK7 or earlier, if anyone is doing such a thing.
Galder, we may be doing such a thing :) The test suite is meant to
verify correctness of our libraries when executed against a concrete set
of external dependencies, with clearly specified supported versions or
version intervals - the jdk being the most important of them.
Since we'll no longer be able to run on jdk 7 we can no longer support
jdk. Even if animal-sniffer cheerfully reports we've not broken binary
compat, that still does not mean much when it comes to jdk version
specific issues, or jdk maker specific issue (remember the IBM jdk
oddities).
Mavenwise, I think it is not possible to have a different compiler
language level for module sources vs. test sources and Eclipse and
Intellij also cannot cope with two source levels per module, so this
would introduce some unnecessary development discomfort. I would vote
no for this.
Adrian
On 04/30/2014 02:55 PM, Galder Zamarreño wrote:
> On 30 Apr 2014, at 13:36, Galder Zamarreño <galder at redhat.com> wrote:
>
>> Hi all,
>>
>> Just thinking out loud: what about we start using JDK8+ for all the test code in Infinispan?
>>
>> The production code would still have language level 6/7 (whatever is required…).
>>
>> This way we start getting ourselves familiar with JDK8 in a safe environment and we reduce some of the boiler plate code currently existing in the tests.
>>
>> This would only problematic for anyone consuming our test jars. They’d need move up to JDK8+ along with us.
> Another potential problem, as rightly pointed out by Will on IRC, is that it would also cause issues for anyone trying to run our testsuite with JDK7 or earlier, if anyone is doing such a thing.
>
>> Thoughts?
>>
>> p.s. Recently I found https://leanpub.com/whatsnewinjava8/read which provides a great overview on what’s new in JDK8 along with small code samples.
>> --
>> Galder Zamarreño
>> galder at redhat.com
>> twitter.com/galderz
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> --
> Galder Zamarreño
> galder at redhat.com
> twitter.com/galderz
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
More information about the infinispan-dev
mailing list