noSuchMethod forwarders shouldn't be generated in abstract classes, but rather in their concrete descendants #33482
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
P2
A bug or feature request we're likely to work on
Projects
Consider the following code:
Currently, it's compiled to the following Kernel code:
Note that the abstract class gets the noSuchMethod forwarder, and the concrete child inherits it. However, abstract classes shouldn't receive noSuchMethod forwarders for their abstract members, even if those classes have a user-defined noSuchMethod. The forwarders should be added to the top-most concrete descendants of such abstract classes. In the example above, it's Hest that should receive the forwarder.
The text was updated successfully, but these errors were encountered: