The RuntimeHintsAgent records all invocations to instrumented methods as RecordedInvocation. They retain a reference to the actual object instance in case of virtual invocations; in case of static invocations, this is set to null. Several methods in RecordedInvocation and RuntimeHintsInvocationsAssert do not take this nullability into account properly.

RecordedInvocation also incorrectly resolves the TypeReference of those recorded instances.