Skip to content

Conversation

@Ostrzyciel
Copy link
Member

Also update the JVM version used to run tests to 25.

I was hoping we will be able to get rid of -J--sun-misc-unsafe-memory-access=allow but unfortunately nope, that piece of code is compiled by scalac and injected into dependency JARs... so we will have to wait for the next Scala LTS.

See: scala/scala3#24109 (comment)

Also update the JVM version used to run tests to 25.

I was hoping we will be able to get rid of `-J--sun-misc-unsafe-memory-access=allow` but unfortunately nope, that piece of code is compiled by scalac and injected into dependency JARs... so we will have to wait for the next Scala LTS.

See: scala/scala3#24109 (comment)
@Ostrzyciel
Copy link
Member Author

$ target/graalvm-native-image/jelly-cli v
jelly-cli   0.8.3+0-2d3fcdb8+20260123-0950-SNAPSHOT
-------------------------------------------------------------
Jelly-JVM   3.6.3
Apache Jena 5.3.0
JVM         Substrate VM 25+37-LTS
Scala       3.8.1
-------------------------------------------------------------
[X] JVM reflection: supported. Parsing optimizations enabled.
[X] Large RDF/XML file parsing: supported.

Copyright (C) 2026 NeverBlink and contributors.
Licensed under the Apache License, Version 2.0.
For details, see https://www.apache.org/licenses/LICENSE-2.0
This software comes with no warranties and is provided 'as-is'.
Documentation and author list: https://github.com/Jelly-RDF/cli

Comment on lines +24 to +30
// If using dependencies on Scala <3.8 and JDK >=24, we need to allow unsafe memory access.
// Otherwise, we get annoying warnings on startup.
// https://github.com/scala/scala3/issues/9013
// Remove this after dependency upgrades to Scala 3.8+
// See this thread for an explanation of why this requires also updates in dependencies:
// https://github.com/scala/scala3/pull/24109#issuecomment-3786629196
"-J--sun-misc-unsafe-memory-access=allow",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some day we will be free of the sun misc unsafe memory access...

@Ostrzyciel Ostrzyciel merged commit e97d943 into main Jan 23, 2026
8 checks passed
@Ostrzyciel Ostrzyciel deleted the piotr/scala-38 branch January 23, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants