From: <no...@so...> - 2002-10-29 14:43:11
|
Patches item #614598, was opened at 2002-09-25 22:04 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312867&aid=614598&group_id=12867 Category: None Group: None Status: Closed Resolution: Rejected Priority: 5 Submitted By: Otmar Humbel (otmarhumbel) Assigned to: Nobody/Anonymous (nobody) Summary: __tojava__() in PyJavaInstance Initial Comment: Because a PyJavaInstance knows about its java counterpart, i suggest adding the following convenience method: public Object __tojava__() { return super.__tojava__( __class__.proxyClass ); } to PyJavaInstance.java. Example usage: In an embedding situation where you don't know what eval() will return, it would be nice if a PyJavaInstance result simply could be turned into a java object. Many thanks, and best wishes, Oti. ---------------------------------------------------------------------- >Comment By: Otmar Humbel (otmarhumbel) Date: 2002-10-29 15:43 Message: Logged In: YES user_id=105844 Thank you for the response ! The Object.class trick is cool - nonetheless I wouldn't have a problem if you added a convenience method to PyObject. ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2002-10-29 13:15 Message: Logged In: YES user_id=4201 I'll reject this patch because you can the proxy instance by calling the method __tojava__(Object.class) on the instance. If a convinience method should be added at all, it must be added to PyObject as well. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312867&aid=614598&group_id=12867 |