Skip to content
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

Selecting Java 11 for versions >3.0.0 downloads a Java 17 version. #1267

Closed
jmahicks opened this issue Aug 1, 2023 · 1 comment
Closed

Comments

@jmahicks
Copy link

jmahicks commented Aug 1, 2023

Good day,

I am trying to download 3.1.2 in Java 11, but I get the following error message after I change the version in pom.xml to "11" from "17", even after specifying "Java 11" on the page:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/SpringApplication has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

It seems that even when specifying the version as Java 11, version 3.1.2 and 3.0.9 are compiled in Java 17.

$ grep "version>" pom.xml | grep -v SNAPSHOT
		<version>3.1.2</version>
		<java.version>17</java.version>

$ grep "version>" pom.xml | grep -v SNAPSHOT
		<version>3.0.9</version>
		<java.version>17</java.version>

Version 2.7.14 is in Java 11.

$ grep "version>" pom.xml | grep -v SNAPSHOT
		<version>2.7.14</version>
		<java.version>11</java.version>

Are versions >3.0.0 only compiled in Java 17? It would seem so because even the build.gradle file shows sourceCompatibility = '17'.

Can the Java version radio buttons be disabled if that version of Java is unsupported in the currently selected Spring Boot version?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 1, 2023
@scottfrederick
Copy link

Are versions >3.0.0 only compiled in Java 17?

Yes. Spring Boot 3 requires Java 17 at a minimum.

Can the Java version radio buttons be disabled if that version of Java is unsupported in the currently selected Spring Boot version?

This is a duplicate of #1041.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2023
@wilkinsona wilkinsona added status: duplicate and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants