-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Support Java 9 #7226
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
Comments
The current build doesn't exhibit the same issue. I'll investigate that a bit more. |
We need to find a different way to extract the default values for the meta-data as we're using a proprietary API.
|
|
Yikes, this might be an issue. It might be worth asking on the JDK mailing list if there's any official way to do this. |
I've created a thread on |
Cast runtime object retrieved reflectively to their public interface counterpart. See gh-7226
There are also additional runtime issues (see #7565 for more details) |
|
IJ also (wrongly) refuses to compile |
|
Ok we're further now. Next is we need to switch to Maven assembly plugin 3.0.1 but we need to make the release happen first. I am on it. |
Friendly ping :). What's the status of this? |
Will Spring boot 1.5.x support java 9 ? |
@douglarek No |
@robinst The status is all on this page. The issue is open and scheduled for 2.0 M5. |
Don't know if this comment should be here or where, but I have just upgrade to java 9 and couldn't run a Spring Boot Application. First of all the following was printed in the console when trying to run the app.
Then the app didn't start, printing the following stacktrace
Making some research on google I found that Java EE modules must be explicitly included, so I created the module-info.java file, including the corresponding module. But after that, any class of Spring couldn't be located. |
@juanmbellini There are multiple ways to fix this issue but I preferred explicitly declaring these dependencies in my project.
and
As you stated these modules are part of java ee and will be removed in the future. In the future you will need to definitely add these dependencies. I have not tested in a detailed way but spring boot 1.5.x seems working with JDK9 as well. Please note that I have not added module info files yet. I had just added some dependencies. |
spring support java 9 ,It will take some time to support! so wait wait wait..... |
One important piece at this point is to update AspectJ as 1.9 is not GA yet and is definitely required to run with Java 9
(available from repo.spring.io/milestone) |
Unless we manage to get a workaround, it looks like there is a bug in Maven that prevents us to property test with Java9. I've opened SUREFIRE-1424. |
This commit workarounds a bug in Surefire, see https://issues.apache.org/jira/browse/SUREFIRE-1424 It also adds `javax.xml.bind` as it is no longer provided by default with Java9 See gh-7226
Liquibase does not work with Java9 yet. I've created CORE-3114 |
The translations for the timezone names vary between Java 8 and Java 9. For example, with Java 9, UTC's name is no longer localized while others have different localizations. This commit updates the test to verify that the correct locale is being used while also tolerating the different localization's of Java 8 and 9. See gh-7226
With well identified limitations the build now passes with Java 9. I've started a wiki page to gathers some of the gotchas. |
@juanmbellini you can try by adding the modules. <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>--add-modules java.xml.bind,java.xml.ws,java.xml.ws.annotation</jvmArguments>
</configuration>
</plugin> |
Uh oh!
There was an error while loading. Please reload this page.
Spring Boot master (
2.0.0.BUILD-SNAPSHOT
) doesn't currently build with JDK9, see the dedicated jobThe text was updated successfully, but these errors were encountered: