[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.
This commit is contained in:
Tyler Veness
2021-10-29 16:23:46 -07:00
committed by GitHub
parent 2cb171f6f5
commit 2dc35c1399

View File

@@ -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());