Skip to content

Conversation

@jonpryor
Copy link
Contributor

Update Hello-Java.Base to use Java.Interop.Sdk, so that it (kinda, sorta) "automagically" gets support for generating Java Callable Wrappers as part of its build.

Add a custom Java.Lang.Object subclass and use it.

…which in turn requires creating a new JreTypeManager subclass to provide the typemap information, because "Java.Interop.Sdk" is not fleshed out enough to provide that information itself.

Update Hello-Java.Base to use Java.Interop.Sdk, so that it
(kinda, sorta) "automagically" gets support for generating
Java Callable Wrappers as part of its build.

Add a custom `Java.Lang.Object` subclass and use it.

…which in turn requires creating a new `JreTypeManager` subclass to
provide the typemap information, because "Java.Interop.Sdk" is not
fleshed out enough to provide that information itself.
Move `GetTypesForSimpleReference()`/etc. into `JreTypeManager`,
add `JreRuntimeOptions.TypeMappings` to make it easier to provide
type mappings without needing to subclass `JreTypeManager` or
otherwise worry about the TypeManager.
@jonpryor jonpryor merged commit 719e615 into main Feb 26, 2025
2 checks passed
@jonpryor jonpryor deleted the dev/jonp/jonp-use-sdk-in-Hello-Java.Base branch February 26, 2025 19:34
jonpryor added a commit to dotnet/android that referenced this pull request Feb 26, 2025
Changes: dotnet/java-interop@471afd4...719e615

  * dotnet/java-interop@719e6159: [Hello-Java.Base] Add support for Java Callable Wrappers (dotnet/java-interop#1315)
  * dotnet/java-interop@1e7f269b: [Java.Interop.GenericMarshaler] fix trimmer warnings (dotnet/java-interop#1314)
jonathanpeppers pushed a commit to dotnet/android that referenced this pull request Feb 27, 2025
Changes: dotnet/java-interop@471afd4...719e615

  * dotnet/java-interop@719e6159: [Hello-Java.Base] Add support for Java Callable Wrappers (dotnet/java-interop#1315)
  * dotnet/java-interop@1e7f269b: [Java.Interop.GenericMarshaler] fix trimmer warnings (dotnet/java-interop#1314)
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants