in src/main/java/org/jetbrains/nativecerts/mac/CoreFoundationExt.java [94:103]
public void setValue(Pointer value) {
if (value != null) {
CoreFoundation.CFTypeID typeId = CoreFoundation.INSTANCE.CFGetTypeID(value);
if (!ERROR_TYPE_ID.equals(typeId)) {
throw new ClassCastException("Unable to cast to CFErrorRef. Type ID: " + typeId);
}
}
super.setValue(value);
}