Self-init check should only run on NSObject subclasses

Actually, the self-init check is performed on all classes. But NSProxy does not even implement -init. So, in proxy subclasses, it is not possible to call [super init].
I attach a patch to disable this check on classes that does not inherit NSObject.

-- Jean-Daniel

self-init.patch (3.42 KB)

Looks good, apart from a nitpick:

- if (!MD->getClassInterface()->getSuperClass())

Committed with that change in r124249. Thanks!


Thank you for the fix, and for the commit.