It would be in the case for converting shape layers into solids for the purpose of masking the shape. AE has this behavior where creating shape layers won’t allow you to apply a mask over it. Pre-composing will solve it but their isn’t a solution for making the shape layer respond to masks.
http://www.williamwolfman.com