Skip to content

Commit 6de15f9

Browse files
committed
Allow to run ds-memory 3.0 on Java 25
1 parent bd999a7 commit 6de15f9

File tree

1 file changed

+2
-2
lines changed
  • datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal

1 file changed

+2
-2
lines changed

datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/ResourceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ public static void checkBounds(final long reqOff, final long reqLen, final long
151151
* @param p1 The second number group
152152
*/
153153
static void checkJavaVersion(final String jdkVer, final int p0, final int p1 ) {
154-
final boolean ok = ((p0 == 1) && (p1 == 8)) || (p0 == 8) || (p0 == 11) || (p0 == 17 || (p0 == 21));
154+
final boolean ok = ((p0 == 1) && (p1 == 8)) || (p0 == 8) || (p0 == 11) || (p0 == 17) || (p0 == 21) || (p0 == 25);
155155
if (!ok) { throw new IllegalArgumentException(
156-
"Unsupported JDK Major Version. It must be one of 1.8, 8, 11, 17, 21: " + jdkVer);
156+
"Unsupported JDK Major Version. It must be one of 1.8, 8, 11, 17, 21, 25: " + jdkVer);
157157
}
158158
}
159159

0 commit comments

Comments
 (0)