< prev index next > src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/abi/SharedUtils.java
Print this page
}
}
return handle;
}
+ static void checkType(Class<?> actualType, Class<?> expectedType) {
+ if (expectedType != actualType) {
+ throw new IllegalArgumentException(
+ String.format("Invalid operand type: %s. %s expected", actualType, expectedType));
+ }
+ }
+
public static class SimpleVaArg {
public final Class<?> carrier;
public final MemoryLayout layout;
public final Object value;
< prev index next >