Skip to content

[jnigen] Support use arenas on nullable JObjects #2239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests
  • Loading branch information
dickermoshe authored Apr 24, 2025
commit d9fce0d871deb73a6b717dbfd2715b646e19a686
2 changes: 2 additions & 0 deletions pkgs/jni/test/jobject_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ void run({required TestRunnerCallback testRunner}) {
});
});
expect(randomInt, lessThan(15));
final JObject? nullableJObject = null;
expect(nullableJObject.use(() => 'foo'),equals('foo));
});

// The JObject and JClass have NativeFinalizer. However, it's possible to
Expand Down