That's because of the way traits are wired into bytecode. They "look like" belonging to the same hierarchy, but we're delegating to static methods. So we cannot enforce the protected semantics.

2017-01-25 13:24 GMT+01:00 Daniel Sun <>:
Hi  Cédric,

>  having a protected property just cannot work
Could you tell me why trait does not support protected property?


View this message in context:
Sent from the Groovy Dev mailing list archive at