You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If OwnString is handled in a type mapper (instead of being NativeMapped), calling this strstr() method will crash due to the return type (arguments work, return types not):
class Test {
static {
Native.register(NativeLibrary.getInstance(C_LIBRARY_NAME, mapWithOwnTypeMapper));
}
private static native OwnString strstr(OwnString haystack, OwnString needle);
}
Here the fix (the result is created but never used/assigned):
If OwnString is handled in a type mapper (instead of being NativeMapped), calling this strstr() method will crash due to the return type (arguments work, return types not):
class Test {
static {
Native.register(NativeLibrary.getInstance(C_LIBRARY_NAME, mapWithOwnTypeMapper));
}
If OwnString is handled in a type mapper (instead of being NativeMapped), calling this strstr() method will crash due to the return type (arguments work, return types not):
Here the fix (the result is created but never used/assigned):
The text was updated successfully, but these errors were encountered: