allwpilib icon indicating copy to clipboard operation
allwpilib copied to clipboard

Replace MathUtil.clamp() with Java 21 Math.clamp()

Open calcmogul opened this issue 1 year ago • 5 comments

Java 21 added Math.clamp(double, double, double).

calcmogul avatar Aug 19 '24 20:08 calcmogul

This is blocked on allwpilib and robot projects upgrading to Java 21.

calcmogul avatar Aug 19 '24 20:08 calcmogul

Robot projects are upgrading next year iirc

spacey-sooty avatar Aug 20 '24 01:08 spacey-sooty

They aren't. WPILib will be using Java 17.

calcmogul avatar Sep 20 '24 06:09 calcmogul

using Java 21 on the roborio is blocked by: https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8341357

sciencewhiz avatar Oct 06 '24 01:10 sciencewhiz

This should probably be on the 2027 milestone iirc the JDK 21 bump is waiting till then.

spacey-sooty avatar Mar 10 '25 09:03 spacey-sooty

Good to be closed, but I don't have perms.

KangarooKoala avatar Aug 24 '25 01:08 KangarooKoala

Closed by #8186.

calcmogul avatar Aug 24 '25 01:08 calcmogul