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 <realbluesun@hotmail.com>:
Hi  Cédric,

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

Thanks,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/Traits-and-protected-properties-tp5738002p5738019.html
Sent from the Groovy Dev mailing list archive at Nabble.com.