Skip to content

Commit

Permalink
Merge branch '2.7.x' into 3.0.x
Browse files Browse the repository at this point in the history
Closes gh-35763
  • Loading branch information
mhalbritter committed Jun 7, 2023
2 parents d5d2050 + 2927d50 commit 9149fc3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,6 +30,7 @@
*
* @author Oliver Gierke
* @author Phillip Webb
* @author Moritz Halbritter
* @since 2.0.0
*/
public enum JavaVersion {
Expand All @@ -47,7 +48,12 @@ public enum JavaVersion {
/**
* Java 19.
*/
NINETEEN("19", Future.class, "state");
NINETEEN("19", Future.class, "state"),

/**
* Java 20.
*/
TWENTY("20", Class.class, "accessFlags");

private final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,10 @@ void currentJavaVersionNineteen() {
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.NINETEEN);
}

@Test
@EnabledOnJre(JRE.JAVA_20)
void currentJavaVersionTwenty() {
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.TWENTY);
}

}

0 comments on commit 9149fc3

Please sign in to comment.