[
https://issues.apache.org/jira/browse/CASSANDRA-19449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821830#comment-17821830
]
Ekaterina Dimitrova edited comment on CASSANDRA-19449 at 2/28/24 7:09 PM:
--------------------------------------------------------------------------
[~rustyrazorblade] ,
can you run: _ant realclean_ and then ant jar, please?
We absolutely build with JDK17 so I suspect it might have been an issue with
your environment.
_ant realclean_ helps most of the time.
ci-cassandra:
[https://ci-cassandra.apache.org/job/Cassandra-5.0-artifacts/]
was (Author: e.dimitrova):
[~rustyrazorblade] ,
can you run: _ant realclean_ and then ant jar, please?
We absolutely build with JDK17 so I suspect it might have been an issue with
your environment.
_ant realclean_ helps most of the time.
Example build from ci-cassandra:
https://ci-cassandra.apache.org/job/Cassandra-5.0-artifacts/
> Support building with JDK17
> ---------------------------
>
> Key: CASSANDRA-19449
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19449
> Project: Cassandra
> Issue Type: Bug
> Components: Build, Documentation
> Reporter: Jon Haddad
> Priority: Normal
>
> We're saying that C* has experimental JDK 17 support yet the 5.0 branch can't
> be built with it.
>
> {noformat}
> ubuntu@ip-172-31-36-36:/usr/local/cassandra/current$ ant
> Buildfile: /usr/local/cassandra/trunk/build.xml
> [echo] Non default JDK version used: 17
> init:
> BUILD FAILED
> /usr/local/cassandra/trunk/build.xml:388: Directory
> /usr/local/cassandra/trunk/build/classes/main creation was not successful for
> an unknown reason
> Total time: 1 second
> ubuntu@ip-172-31-36-36:/usr/local/cassandra/current$ java -version
> openjdk version "17.0.10" 2024-01-16
> OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1)
> OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode,
> sharing)
> {noformat}
> Trying to use a similar flag to -Duse.jdk11=true fails as well:
>
> {noformat}
> ubuntu@ip-172-31-36-36:/usr/local/cassandra/current$ ant -Duse.jdk17=true
> Buildfile: /usr/local/cassandra/trunk/build.xml
> [echo] Non default JDK version used: 17init:BUILD FAILED
> /usr/local/cassandra/trunk/build.xml:388: Directory
> /usr/local/cassandra/trunk/build/classes/main creation was not successful for
> an unknown reasonTotal time: 0 seconds{noformat}
> I see this in build.xml:
> {noformat}
> <property name="java.supported" value="11,17" />{noformat}
>
> I think a bigger picture question is, why do we require special flags to
> build different JVM versions? Is this a limitation of ant, or the way we've
> configured it?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]