Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E5236200B4F for ; Tue, 12 Jul 2016 00:52:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3BD3160A7D; Mon, 11 Jul 2016 22:52:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39A05160A78 for ; Tue, 12 Jul 2016 00:52:17 +0200 (CEST) Received: (qmail 15371 invoked by uid 500); 11 Jul 2016 22:52:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 15336 invoked by uid 99); 11 Jul 2016 22:52:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 22:52:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2F7BE2C02A9 for ; Mon, 11 Jul 2016 22:52:11 +0000 (UTC) Date: Mon, 11 Jul 2016 22:52:11 +0000 (UTC) From: "Carlos Abad (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9608) Support Java 9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Jul 2016 22:52:18 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-9608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371835#comment-15371835 ] Carlos Abad commented on CASSANDRA-9608: ---------------------------------------- Carlos Abad here from the Intel Java team. I've been able to build Cassandra with JDK9 (build 125) applying the modifications noted below. However the build only pass 70% of the Unit tests. *At least Apache Ant version 1.9.7 is required for JDK9. Previous version are unable to load the JavaScript script engine manager in JDK9. build.xml: *Generating Bytecode for Java 9. Source is still written for Java 8. *Java 9 removed -Xbootclasspath/p command option. Without this option Cassandra will depend on the given Java classpath to include the CRC32 class *To avoid "Annotation generator had thrown the exception. java.lang.NoClassDefFoundError: javax/annotation/Generated" need to add "-addmods java.annotations.common" to the javac task of the "build-test" target. src/java/org/apache/cassandra/utils/Throwables.java: *Stream.of() throws an exception now, need to be captured. src/java/org/apache/cassandra/utils/concurrent/Locks.java: *sun.misc.unsafe is going away. Fortunately cassandra.utils.concurrent.Locks is only used in one place (db/partitions/AtomicBTreePartition, see below). It'll be enough to modify AtomicBTreePartitions and remove this class. src/java/org/apache/cassandra/db/partitions/AtomicBTreePartition.java: *This is the only place where the class cassandra.utils.concurrent.Locks is used. We'll modify it to use Java's ReentrantLock instead. > Support Java 9 > -------------- > > Key: CASSANDRA-9608 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9608 > Project: Cassandra > Issue Type: Task > Reporter: 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} > - > + > + > + > {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.3.4#6332)