You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2017/10/03 17:00:07 UTC

[jira] [Updated] (CASSANDRA-9608) Support Java 9

     [ https://issues.apache.org/jira/browse/CASSANDRA-9608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Stupp updated CASSANDRA-9608:
------------------------------------
    Assignee: Robert Stupp
      Status: Patch Available  (was: Open)

Alright, after some quiet period, here's [a patch|https://github.com/apache/cassandra/compare/trunk...snazy:9608-trunk] to make current trunk run on Java9.

We ([~luy] and I) just presented the code changes at JavaOne.

Basically all concerns above are addressed except the JMX changes proposed by [~alanb] and [~mandy.chung@oracle.com], which would be better addressed in a separate ticket.

We still have to support Java 8 and that means it must be built against Java 8 and not Java 9. The generated code however runs on 8 and 9. CI must run against 8 + 9.

CI is looking good:
* testall against Java 8
* testall against Java 9
* dtests against Java 8
* dtests against Java 9 not run yet

Included in this patch:
* library updated for jamm and ohc to address new Java 9 version strings
* distinction of java8 and java9 in jvm.options and split out jvm8.options + jvm9.options
* JVM log parameter changes
* Slight changes for Java UDFs
* Not that slight changes for JavaScript UDFs
* Change in {{AtomicBTreePartition}} to reflect the removal of some {{Unsafe}} methods
* Abstraction of {{Cleaner}} in {{FileUtils}}
* Adoptions in {{JMXServerUtils}}
* Addressed some noise caused by {{ant eclipse-warnings}}

> Support Java 9
> --------------
>
>                 Key: CASSANDRA-9608
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9608
>             Project: Cassandra
>          Issue Type: Task
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Minor
>
> This ticket is intended to group all issues found to support Java 9 in the future.
> From what I've found out so far:
> * Maven dependency {{com.sun:tools:jar:0}} via cobertura cannot be resolved. It can be easily solved using this patch:
> {code}
> -        <dependency groupId="net.sourceforge.cobertura" artifactId="cobertura"/>
> +        <dependency groupId="net.sourceforge.cobertura" artifactId="cobertura">
> +          <exclusion groupId="com.sun" artifactId="tools"/>
> +        </dependency>
> {code}
> * Another issue is that {{sun.misc.Unsafe}} no longer contains the methods {{monitorEnter}} + {{monitorExit}}. These methods are used by {{o.a.c.utils.concurrent.Locks}} which is only used by {{o.a.c.db.AtomicBTreeColumns}}.
> I don't mind to start working on this yet since Java 9 is in a too early development phase.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org