Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Can modify inheritance after instantiation #1021
Reported by: firstname.lastname@example.org
Instantiating a class directly sets its "instantiated" flag, which prevents further changes to its parentage, but indirectly instantiating it doesn't set the flag. The result is that the class hierarchy behind an existing object can be modified:
Note that caching of inheritance relationships means that the second isa check gives the wrong answer.