ekaterinadimitrova2 commented on code in PR #2563:
URL: https://github.com/apache/cassandra/pull/2563#discussion_r1290626894


##########
bin/cassandra:
##########
@@ -276,6 +280,19 @@ if [ "x$allow_root" != "xyes" ] ; then
     fi
 fi
 
+if  [ "$short" \< "11" ];then
+    echo "Cassandra 5.0 requires Java 11 or Java 17."
+    exit 1;
+fi
+
+java_versions_supported=11,17
+supported=$(echo "$java_versions_supported" | tr "," '\n' | grep -F -x 
"$short")
+if [ "x$allow_experimental_java_ver" != "xyes" ] && [ "x$supported" = "x" ] ; 
then
+    echo "Experimental Java version not allowed: Cassandra 5.0 requires Java 
11 or Java 17."
+    echo "If you would like to test with this version, use -J command line 
option"

Review Comment:
   ```suggestion
       echo "Cassandra 5.0 requires Java 11 or Java 17."
       echo "If you would like to test running Cassandra on non-LTS post JDK11 
version, you can start it by adding -J command line option"
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to