New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Java 11 #64
Comments
|
Original report: https://bitbucket.org/openclover/clover/issues/64 |
|
If no Java 11 features are used, could openclover function with java 11 by just supporting the version in the following file: The code I instrument doesn’t use any Java features higher then 8 it just happens to compile using JDK 11. If it is a quick change to support that maybe a small stepping stone in getting to JDK 11? |
|
I am afraid this would bring addinional confusion for end users.
Why not to change jdk settings for OpenClover? Which integration do you use?
…On Thu, Jan 23, 2020, 21:40 freshcodemonger ***@***.***> wrote:
If no Java 11 features are used, could openclover function with java 11 by
just supporting the version in the following file:
https://bitbucket.org/openclover/clover/src/default/clover-core/src/main/java/com/atlassian/clover/cfg/instr/java/JavaInstrumentationConfig.java
The code I instrument doesn’t use any Java features higher then 8 it just
happens to compile using JDK 11. If it is a quick change to support that
maybe a small stepping stone in getting to JDK 11?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#64?email_source=notifications&email_token=AFH6KQMHTDXJ6LB56YFMM6TQ7H6FVA5CNFSM4J35B6SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYYY3I#issuecomment-577866861>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFH6KQOGLY3SY5ASE3ODAHDQ7H6FVANCNFSM4J35B6SA>
.
|
|
I am using the gradle open clover plugin. So your suggestion is to launch gradle with jdk11 but then in the clover configuration switch to compiler.executable of jdk8? |
|
I'm not sure if the gradle-clover-plugin has this option, but clover-for-ant has the 'source' property (see http://openclover.org/doc/manual/latest/ant--clover-setup.html). Similarly, clover-maven-plugin has 'jdk' property (see http://openclover.org/doc/maven/latest/setup-mojo.html#jdk). |
|
Thanks. I put some more time into this and I can now get the clover reports to work. sourceCompatiblity worked. javaCompile.sourceCompatiblity did not - probably a problem with the gradle plugin. |
|
Already implemented in releases 4.5.0-4.5.2. |
Java 11 is planned for September, 2018. Ensure OpenClover is compatible.
Main language changes: * Local-Variable Syntax for Lambda Parameters (JEP 323)
Tasks:
(similar to those in Java 9 and 10)
see https://dzone.com/articles/an-early-look-at-features-targeted-for-java-11 for example.
The text was updated successfully, but these errors were encountered: