Issue1814

classification
Title: Document an upgrade path for users of PyJavaInstance
Type: Severity: normal
Components: Documentation Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: amak, cxbrooks, fwierzbicki
Priority: Keywords:

Created on 2011-11-05.18:08:53 by amak, last changed 2013-02-26.18:11:15 by fwierzbicki.

Messages
msg6703 (view) Author: Alan Kennedy (amak) Date: 2011-11-05.18:08:52
Under 2.2, a common use case for developers embedding jython was to wrap java objects in PyJavaInstance.

PyJavaInstance was deprecated in jython 2.5, so systems that embedded jython 2.2 and that want to upgrade to to jython 2.5 need an upgrade path.

Here are some examples

red5: http://code.google.com/p/red5/issues/detail?id=86
kepler: https://kepler-project.org/developers/reference/python-and-kepler
freemarker: http://sourceforge.net/tracker/index.php?func=detail&aid=3165425&group_id=794&atid=100794

Rather than let everyone trip over this one, let's document it. Ideally a document on the wiki describing the issue and illustrating a solution, with code that works under both 2.2 and 2.5.
msg6709 (view) Author: Christopher Brooks (cxbrooks) Date: 2011-11-05.22:30:28
BTW - For Kepler/Ptolemy, I changed calls like:

new PyJavaInstance(attribute)
to
PyJavaType.wrapJavaObject(attribute)

I have no idea if this is correct, but the Ptolemy tests passed.
Adding something to the Jython Wiki would be great.
History
Date User Action Args
2013-02-26 18:11:15fwierzbickisetnosy: + fwierzbicki
2011-11-05 22:30:28cxbrookssetnosy: + cxbrooks
messages: + msg6709
components: + Documentation
2011-11-05 18:08:53amakcreate