allwpilib
allwpilib copied to clipboard
Replace MathUtil.clamp() with Java 21 Math.clamp()
This is blocked on allwpilib and robot projects upgrading to Java 21.
Robot projects are upgrading next year iirc
They aren't. WPILib will be using Java 17.
using Java 21 on the roborio is blocked by: https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8341357
This should probably be on the 2027 milestone iirc the JDK 21 bump is waiting till then.
Good to be closed, but I don't have perms.
Closed by #8186.