You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ekaterina Dimitrova (Jira)" <ji...@apache.org> on 2021/09/08 19:23:00 UTC

[jira] [Commented] (CASSANDRA-16895) Support Java 17

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

Ekaterina Dimitrova commented on CASSANDRA-16895:
-------------------------------------------------

Some initial thoughts after some initial work done to remove Java 8 and add Java 17 for trunk:

-The Nashorn engine has been deprecated in JDK 11 as part of [JEP 335|https://openjdk.java.net/jeps/335] and and has been removed from JDK15 as part of [JEP 372|https://openjdk.java.net/jeps/372]. GraalVM can step in as a replacement for JavaScript code previously executed on the Nashorn engine. GraalVM provides all the features for JavaScript previously provided by Nashorn. Working on this part now.

-We will need more --add-exports and --add-opens as Java 17 is quite restrictive. 

- Currently [this script |https://github.com/apache/cassandra/blob/trunk/build.xml#L147-L155]inclusion in build.xml leads to 

_../cassandra/build.xml:147: Unable to create javax script engine for javascript,_ related to the Nashorn removal. My initial try to solve this didn't work. I left it for later as a lower priority task.

- ant updated; probably other dependencies will have to be updated too

 

 

 

> Support Java 17
> ---------------
>
>                 Key: CASSANDRA-16895
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16895
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Ekaterina Dimitrova
>            Assignee: Ekaterina Dimitrova
>            Priority: Low
>
>   This ticket is intended to group all issues found to support Java 17 in the future.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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