Skip to content

bugfix: add class compatibility with java 8 #2554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

yzia2000
Copy link

@yzia2000 yzia2000 commented Jan 5, 2025

JniGetWinDirs.java ends up being compiled jdk17 (class file version 61.0) causing issues for jdk8 windows users.

This change adds source and target compatibility for bloop-cli with java 8.

JniGetWinDirs seems to have to been recently added as of 2.0.0

JniGetWinDirs.java ends up being compiled jdk17 causing issues
for jdk8 users.
@yzia2000
Copy link
Author

yzia2000 commented Jan 5, 2025

@tgodzik mind taking a look at this?

@@ -208,6 +208,7 @@ lazy val frontend: Project = project
lazy val cliSettings = Seq(
name := "bloop-cli",
scalaVersion := Dependencies.Scala213Version,
javacOptions ++= javacOpts,
Copy link
Contributor

Choose a reason for hiding this comment

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

cli module is published as a Native Image, so this should not be an issue.

Also, currently Bloop uses UnixDomainSocketAddress which was added in JDK 16, so Bloop can't really run on earlier JDKs (we would need to do some work on that), but we do automatically add release flags, which should work with most common issues

Copy link
Author

Choose a reason for hiding this comment

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

Might be useful to add java 8 compatibility for folks who are only cleared to use the jar at work and not the native image (such as myself).

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, but unfortunately Bloop will not currently work on earlier JDKs as it requires API from JDK 16.

@yzia2000 yzia2000 closed this Jan 18, 2025
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.

2 participants