Skip to content

Out-of-the-box build compatibility with JDK 9 build 136 [SPR-14645] #19211

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14645 and commented

The Spring Framework 5.0 M1 build ran on JDK 9 already but required a manual Gradle upgrade. As of 5.0 M2, we're building on Gradle 3.0 out of the box, so our entire framework build can run on JDK 9 out of the box as well. Let's verify our compatibility against the latest JDK 9 snapshot.


Affects: 5.0 M1

Issue Links:

Activity

  1. spring-projects-issues commented on Aug 31, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Our JDK 9 CI build revealed a breakage in AnnotationUtilsTests.toStringForSynthesizedAnnotations where we relied on a particular Annotation.toString representation from the JDK. However, since no particular format is guaranteed there, I've reduced those checks to our own synthesized annotations.

  2. spring-projects-issues commented on Aug 31, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Hmmmm... that's rather shocking that the toString() implementation for annotations has changed on JDK 9.

    I'd be interested to see what the new format is.

    In any case, thanks for making the test more robust.

  3. spring-projects-issues commented on Aug 31, 2016

    @spring-projects-issues
    CollaboratorAuthor
  4. spring-projects-issues commented on Aug 31, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Aha.

    So, basically, the new format aligns with the actual syntax from the Java source code.

    Interesting!

  5. spring-projects-issues commented on Sep 16, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Netty's NioEventLoopGroup doesn't work on current JDK 9 builds out of the box since it depends on sun.nio.ch.SelectorImpl which the java.base module doesn't export by default anymore. With some conditional extra exports added to Gradle's test JVMs, all of our tests pass again.

  6. added this to the 5.0 M2 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions