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

Josh McKenzie commented on CASSANDRA-18262:
-------------------------------------------

bq. Why would you be developing and checking against 11 if you ship with 8 to 
get to the point that you broke 8 only when you get to CI?
This is a really good point. This has kind of been nagging at me for years 
without bubbling up to the surface.

Is there any reason to develop locally on any JDK other than the oldest one 
supported, since we can't use new language features anyway? Is the thought that 
the newer JDKs would potentially build faster or run local tests faster to 
tighten the feedback loops working on code/

Currently our documentation 
[link|https://cassandra.apache.org/_/development/index.html] kind of hand-waves 
at the situation as being up to the individual developer:
{quote}
Prerequisites
Building Cassandra from source is the first important step in contributing to 
the Apache Cassandra project. You will need to install Java (JDK 8 or 11, 
depending on which version you want to build Cassandra against, best is to 
install both and then switch between them when needed), Git, and Ant (including 
ant-optional).
{quote}

It seems to me that we could have stronger verbiage along the lines of "We 
recommend you build and run locally on the oldest supported JDK version X as 
newer language features cannot be supported due to compilation requirements."

> Switch checkstyle running only with JDK8 to be run with JDK11
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-18262
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18262
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Ekaterina Dimitrova
>            Assignee: Maxim Muzafarov
>            Priority: Normal
>             Fix For: 5.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently we run checkstyle, eclipse warnings (and probably anything else?) 
> only with JDK8.
> In preparation to remove JDK8 we need to switch those to run with JDK11.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to