[P12][P13] MetaLinkInstaller raises NodeNotFound
when installing an object-centric permalink for a variable slot defined in a superclass
#16548
Labels
Bug description
When installing an object-centric permalink on a variable slot, the method
registerAndInstallPermaLink:forTarget:
takes all nodes that access this slot and it installs the metalink on the equivalent nodes in the anonymous subclass of the object:However, if the target variable slot has been defined by one of the superclasses of the object, it does not exclude the accessing nodes that are not in the object's class hierarchy (so: the nodes from methods that are in brother/cousin classes). As a result, it will try to find equivalent nodes in the anonymous subclass but these nodes do not exist so an exception
NodeNotFound
is raised.To Reproduce
obj := SindarinDebuggerTest new
,obj
,Expected behavior
No exception should be raised, the method
registerAndInstallPermaLink:forTarget:
should reject all nodes from methods that are not in the object's class hierarchyVersion information:
Expected development cost
Easy fix, the analysis above was the hardest to do
The text was updated successfully, but these errors were encountered: