Jacoco does not build with jvm < 8

28 views
Skip to first unread message

mer...@gmail.com

unread,
Mar 18, 2016, 3:34:57 PM3/18/16
to JaCoCo and EclEmma Users
I cloned Jacoco to my local windows machine. I have Maven 3.3.9 and I'm using a JDK 1.8.

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?

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages