Currently there is no way to find out where a ResolvedJavaType comes from. Java's concept of classloaders as owners of the classes it loads and unloads has no representation in JVMCI yet.
A concept similar to classloaders should be added to ResolvedJavaType.
ResolvedJavaType#getOwner() should return an interface (e.g. `Owner`) that allows flexibility in the expression of concrete ownership.
For most `ResolvedJavaType`s a subtype of `Owner` (e.g. `JavaOwner`) would get returned that allows to access
* the `ClassLoader` that loaded the class that we are expressing as ResolvedJavaType in JVMCI
* the Java Module that the underlying class belongs to
Keeping the interface vague on the top-level would allow us to have ownership even for types that are brought into existence by other means.
A concept similar to classloaders should be added to ResolvedJavaType.
ResolvedJavaType#getOwner() should return an interface (e.g. `Owner`) that allows flexibility in the expression of concrete ownership.
For most `ResolvedJavaType`s a subtype of `Owner` (e.g. `JavaOwner`) would get returned that allows to access
* the `ClassLoader` that loaded the class that we are expressing as ResolvedJavaType in JVMCI
* the Java Module that the underlying class belongs to
Keeping the interface vague on the top-level would allow us to have ownership even for types that are brought into existence by other means.