From: Martin S. <mar...@ae...> - 2011-05-24 16:20:21
|
thats what i suspected but at least i have it confirmed. looks like i've got a few hours re-engineering ahead.. Thanks all, martin On 24 May 2011 17:07, Johann Werner <jw...@oy...> wrote: > Hi Martin, > > Am 24.05.2011 um 17:33 schrieb Martin Samm: > > > hi all, > > > > i've got something odd going on with protected method access. > > > > i've got this component class hierarchy > > > > A.class > > B.class extends A.class > > C.class extends B.class > > > > A has the member > > > > protected String l; > > > > in C's wod we have > > > > Cnd_HasL: WOConditional { > > condition = parent.parent.l; > > } > > > > now until today all the classes etc were in the default package (i know, > baaad). > > > > so, ive been refactoring and they're all in the same package so as far as > i'm aware the above access should still be fine when accessing a protected > variable. > > > > But, i'm getting > > > > valueForKey()]: lookup of unknown key: 'l' > > > > If i make the member 'l' public all's fine. > > > > So, is this a feature WO accessors? > > That behavior is what I would expect. Everything you want to use within > bindings has to be public (either itself or a public accessor(/setter)). > > jw > > > > > Thanks > > > > Martin > > > -- Martin Samm Aetopia Ltd +44 (0) 28 9099 8767 ____________________________________________________________________________ Aetopia Ltd is a limited company registered in Belfast, Northern Ireland, with registration number NI053321, having its principal place of business (and postal address) at ECIT Institute, Queens Road, BELFAST BT3 9DT and registered office at 1, Lanyon Quay, BELFAST BT1 3LG |