You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Peter Ivanov (JIRA)" <ji...@apache.org> on 2018/01/10 12:13:00 UTC

[jira] [Comment Edited] (IGNITE-6730) Java 9: fix project build procedure

    [ https://issues.apache.org/jira/browse/IGNITE-6730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320149#comment-16320149 ] 

Peter Ivanov edited comment on IGNITE-6730 at 1/10/18 12:12 PM:
----------------------------------------------------------------

A temporary solution introduced to make sure Ignite compiles under Java 9:
- Java 8 profiles and build process revision, made in IGNITE-7203;
- Java 9 maven profile prepared in IGNITE-7144 (moved to IGNITE-6730 as subtask);
- specific maven-compiler-plugin configuration with JVM args for Java 9 profile (as was proposed by Vladimir Ozerov);
- maven-bundle-plugin version is updated to 3.5.0;
- maven-compiler-plugin version synchronised to 3.7.0 (in Cassandra modules);
- scala version updated to 2.12.4;
- disabled scalar-2.10, spark-2.10 and visor-console-2.10 modules (due to dependency in scala 2.10 which is unsupported by Java 9);
- sun.misc.JavaNioAccess import changed to jdk.internal.misc.JavaNioAccess in GridUnsafe.java and PageMemoryImpl.java;
- sun.misc.SharedSecrets import changed to jdk.internal.misc.SharedSecrets in GridUnsafe.java and PageMemoryImpl.java;

Also, fix from IGNITE-6736 is required for successful compilation.


was (Author: vveider):
A temporary solution introduced to make sure Ignite compiles under Java 9:
Here are changes to make it work:
- Java 8 profiles and build process revision, made in IGNITE-7203;
- Java 9 maven profile prepared in IGNITE-7144 (moved to IGNITE-6730 as subtask);
- specific maven-compiler-plugin configuration with JVM args for Java 9 profile (as was proposed by Vladimir Ozerov);
- maven-bundle-plugin version is updated to 3.5.0;
- maven-compiler-plugin version synchronised to 3.7.0 (in Cassandra modules);
- scala version updated to 2.12.4;
- disabled scalar-2.10, spark-2.10 and visor-console-2.10 modules (due to dependency in scala 2.10 which is unsupported by Java 9);
- sun.misc.JavaNioAccess import changed to jdk.internal.misc.JavaNioAccess in GridUnsafe.java and PageMemoryImpl.java;
- sun.misc.SharedSecrets import changed to jdk.internal.misc.SharedSecrets in GridUnsafe.java and PageMemoryImpl.java;

Also, fix from IGNITE-6736 is required for successful compilation.

> Java 9: fix project build procedure
> -----------------------------------
>
>                 Key: IGNITE-6730
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6730
>             Project: Ignite
>          Issue Type: Task
>          Components: build
>    Affects Versions: 2.3
>            Reporter: Vladimir Ozerov
>            Assignee: Peter Ivanov
>             Fix For: 2.4
>
>
> 1) In most modules compiler level is set to 1.7 explicitly. Should we fix it somehow? See commit {{a450452e}} for reference.
> 2) Most probably we will have separate code flows for Java 7/8 and Java 9. Need to understand how to organize this. Most probably we will have two pluggable modules producing separate JARs, which will be linked in runtime. Any other ideas?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)