-
assigned issue to
ClassHierarchy.isSubtypeOf doesn't see Object as supertype of SomeClass[]
Issue #105
resolved
classHierarchy.isSubtypeOf(someArrayType.asObjectType, objectType.asObjectType).isYes
returns false.
Comments (4)
-
repo owner -
reporter Ok, I used the method in a wrong way. No issue here.
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.9.0-M1 (automated comment)
- Log in to comment
This code looks suspicious -
someArrayType.asObjectType
should always fail with an exception ifsomeArrayType
actually represents anArrayType
. (Recall,asObjectType
is primarily a convenience method to avoid that users have to make explicit type casts.) If it doesn't fail, then the result does not seem to be that surprising.Or , in other words. If
classHierarchy.isSubtypeOf(someArrayType.asObjectType, ObjectType.Object).isYes
is actuallyfalse
, then, please, let me know again.Hence, i will close this issue for the time being. Please, directly reopen this issue if you have two concrete examples.