From 2dc35c139900e21410ba08d1bbfd24c4ff98faaa Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Fri, 29 Oct 2021 16:23:46 -0700 Subject: [PATCH] [wpimath] Fix classpaths for JNI class loads (#3697) Found by inspecting the results of the following rg commands: `rg --multiline 'FindClass\(\s*"'` `rg 'JClass' -A 1` Fixes #3660. --- wpimath/src/main/native/cpp/jni/WPIMathJNI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpimath/src/main/native/cpp/jni/WPIMathJNI.cpp b/wpimath/src/main/native/cpp/jni/WPIMathJNI.cpp index 3f4e484733..b036833fac 100644 --- a/wpimath/src/main/native/cpp/jni/WPIMathJNI.cpp +++ b/wpimath/src/main/native/cpp/jni/WPIMathJNI.cpp @@ -273,7 +273,7 @@ Java_edu_wpi_first_math_WPIMathJNI_deserializeTrajectory return MakeJDoubleArray(env, elements); } catch (std::exception& e) { jclass cls = env->FindClass( - "edu/wpi/first/wpilibj/trajectory/TrajectoryUtil$" + "edu/wpi/first/math/trajectory/TrajectoryUtil$" "TrajectorySerializationException"); if (cls) { env->ThrowNew(cls, e.what()); @@ -298,7 +298,7 @@ Java_edu_wpi_first_math_WPIMathJNI_serializeTrajectory frc::TrajectoryUtil::SerializeTrajectory(trajectory)); } catch (std::exception& e) { jclass cls = env->FindClass( - "edu/wpi/first/wpilibj/trajectory/TrajectoryUtil$" + "edu/wpi/first/math/trajectory/TrajectoryUtil$" "TrajectorySerializationException"); if (cls) { env->ThrowNew(cls, e.what());