Skip to content
  • John Hawthorn's avatar
    ae163cae
    Allow calling protected methods from refinements · ae163cae
    John Hawthorn authored
    Previously protected methods on refinements could never be called
    because they were seen as being "defined" on the hidden refinement
    ICLASS.
    
    This commit updates calling refined protected methods so that they are
    considered to be defined on the original class (the one being refined).
    
    This ended up using the same behaviour that was used to check whether a
    call to super was allowed, so I extracted that into a method.
    
    [Bug #18806]
    ae163cae
    Allow calling protected methods from refinements
    John Hawthorn authored
    Previously protected methods on refinements could never be called
    because they were seen as being "defined" on the hidden refinement
    ICLASS.
    
    This commit updates calling refined protected methods so that they are
    considered to be defined on the original class (the one being refined).
    
    This ended up using the same behaviour that was used to check whether a
    call to super was allowed, so I extracted that into a method.
    
    [Bug #18806]
Loading