Message4504

Author MrMeanie
Recipients MrMeanie, fwierzbicki
Date 2009-04-13.18:02:24
SpamBayes Score 9.09361e-07
Marked as misclassified No
Message-id <1239645746.28.0.337283982332.issue1271@psf.upfronthosting.co.za>
In-reply-to
Content
Please find attached a patch which fixes the issue without breaking the
tests you mentioned.

Cause: PyJavaType.init() refusing to overwrite any 'dict' entry with the
same name, with a bean property, that was not already a bean property or
bean event.

The desired behavior (of my original patch) was to prevent methods in
superclasses being overridden, *but*, the behavior that resulted
prevented bean properties from being registered when anything was
registered under that name, including class properties.

The new patch ensures that overriding is only prevented when the
definition being overridden comes from a superclass, by calling
lookup_where() instead of lookup(), and checking that the original
definition is NOT from the current class.
History
Date User Action Args
2009-04-13 18:02:26MrMeaniesetmessageid: <1239645746.28.0.337283982332.issue1271@psf.upfronthosting.co.za>
2009-04-13 18:02:26MrMeaniesetrecipients: + MrMeanie, fwierzbicki
2009-04-13 18:02:26MrMeanielinkissue1271 messages
2009-04-13 18:02:25MrMeaniecreate