Running mvn clean install produces some errors that seem to imply the code has to be compiled with source level = 1.8.
***
[ERROR] \jacoco\org.jacoco.core.test\src\org\jacoco\core\test\validation\java8\InterfaceDefaultMethodsT
arget.java:[23,1] error: default methods are not supported in -source 1.5
[ERROR] \jacoco\org.jacoco.core.test\src\org\jacoco\core\test\validation\java8\LambdaExpressionsTarget.
java:[26,10] error: lambda expressions are not supported in -source 1.5
[ERROR] \jacoco\org.jacoco.core.test\src\org\jacoco\core\test\validation\java8\LambdaInInterfaceTarget.
java:[21,39] error: lambda expressions are not supported in -source 1.5
***
I then created a toolchains.xml file per here - http://eclemma.org/jacoco/trunk/doc/build.html - and this indeed works if I use the command line
mvn clean install -Djdk.version=1.8 -Dbytecode.version=1.8
However, if I use any of the other versions (5,6,7) it does not work.
Is this expected?