Message5309

Author MrMeanie
Recipients MrMeanie
Date 2009-11-13.10:09:33
SpamBayes Score 0.00016961589
Marked as misclassified No
Message-id <1258106976.04.0.68172993042.issue1503@psf.upfronthosting.co.za>
In-reply-to
Content
Please find attached a patch that addresses this issue, along with some
additional tests to verify its functionality.
Both 'regrtest' and 'javatest' pass with these changes in place.

The following changes have been made:

org.python.core.PyReflectedConstructor#__call__:
Keyword arguments are now handled by:
- If keyword arguments have been passed:
   - If a constructor can be found that accepts keyword arguments, it
will be invoked.
   - If no keyword arg constructor is found, then the keyword args are
stripped, and the remaining args are passed to a constructor that will
accept them. The keyword args are used as bean property values
- If no keyword arguments have been passed, the arguments are passed to
the constructor as normal.


tests/python/constructorkwargs_test.py: Python part of the test
tests/java/org/python/tests/* Java parts of the test
History
Date User Action Args
2009-11-13 10:09:36MrMeaniesetmessageid: <1258106976.04.0.68172993042.issue1503@psf.upfronthosting.co.za>
2009-11-13 10:09:36MrMeaniesetrecipients: + MrMeanie
2009-11-13 10:09:35MrMeanielinkissue1503 messages
2009-11-13 10:09:35MrMeaniecreate