groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: Traits and protected properties
Date Wed, 25 Jan 2017 12:30:55 GMT
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.
>

Mime
View raw message