mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
HAND FIXES: Fixup java and python compilation
This commit is contained in:
committed by
Peter Johnson
parent
108a8c0f9b
commit
105deaddb0
@@ -4,6 +4,8 @@
|
||||
|
||||
package org.wpilib.util;
|
||||
|
||||
import org.wpilib.util.runtime.CombinedRuntimeLoader;
|
||||
|
||||
public final class DevMain {
|
||||
/** Main entry point. */
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -7,6 +7,7 @@ package org.wpilib.util;
|
||||
import java.io.IOException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import org.wpilib.util.runtime.RuntimeLoader;
|
||||
|
||||
/** WPIUtil JNI. */
|
||||
public class WPIUtilJNI {
|
||||
|
||||
@@ -7,6 +7,7 @@ package org.wpilib.util.concurrent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
import org.wpilib.util.WPIUtilJNI;
|
||||
|
||||
/** A thread-safe container for handling events. */
|
||||
public class EventVector {
|
||||
|
||||
@@ -32,7 +32,7 @@ static const JExceptionInit exceptions[] = {
|
||||
{"java/lang/InterruptedException", &interruptedEx},
|
||||
{"java/io/IOException", &ioEx},
|
||||
{"java/lang/NullPointerException", &nullPointerEx},
|
||||
{"org/wpilib/util/MsvcRuntimeException", &msvcRuntimeEx}};
|
||||
{"org/wpilib/util/runtime/MsvcRuntimeException", &msvcRuntimeEx}};
|
||||
|
||||
void wpi::ThrowIllegalArgumentException(JNIEnv* env, std::string_view msg) {
|
||||
illegalArgEx.Throw(env, msg);
|
||||
|
||||
Reference in New Issue
Block a user