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
Given the type JavaObject on the Swift side, we can query the AnyJavaObject conformance to get the canonical Java class name. However, we have no way to go in the opposite direction, from a Java class name like java.lang.Object to JavaObject. The translation manifest has this information for use in the tool, but at runtime there is no way say "find the most specific Swift type for this Java object".
We should consider some kind of automatically-populated runtime registry to make this possible.
The text was updated successfully, but these errors were encountered:
When we have a Swift type that wraps a Java class, it has a macro annotation like this:
Given the type
JavaObject
on the Swift side, we can query theAnyJavaObject
conformance to get the canonical Java class name. However, we have no way to go in the opposite direction, from a Java class name likejava.lang.Object
toJavaObject
. The translation manifest has this information for use in the tool, but at runtime there is no way say "find the most specific Swift type for this Java object".We should consider some kind of automatically-populated runtime registry to make this possible.
The text was updated successfully, but these errors were encountered: