Proof of Concept: Map Java object to single best managed type#1363
Proof of Concept: Map Java object to single best managed type#1363jtschuster wants to merge 10 commits intodotnet:mainfrom
Conversation
|
The PR summary says:
This is doomed, for two reasons:
You cannot "ignore" the |
|
@simonrozsival work on the new "trimmable typemap" is moving the logic for this -- so we shouldn't need this PR. Let us know if we are missing anything, though, thanks! |
|
This should not be necessary anymore. "Trimmable type map" supports finding the right type by |
This is a proof of concept for using the TypeMap API from .NET 10 as the source of .NET - Java type mapping. The TypeMap API only allows for a one-to-one relationship between .NET and Java types. To test the viability of it, this branch removes all conditional logic in mapping a Java object to a .NET type, and follows the algorithm in Android's NativeAOT TypeMappingStep to find the single best type for the Java class, and creates an instance of that type. I didn't find any cases where this fails in tests locally.