Message12556

Author stefan.richthofer
Recipients adamburke, filip.drozdowski, stefan.richthofer
Date 2019-06-03.22:39:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559601568.07.0.00723026871185.issue2776@roundup.psfhosted.org>
In-reply-to
Content
Okay, it looks like ReflectedArgs.data is only accessed in PyReflectedFunction and PyReflectedConstructor. At these places it is cast to a Method or Constructor object respectively. So Object in this case is just a placeholder for "Method or Constructor". So, java.lang.reflect.Executable would be the proper type of ReflectedArgs.data. That wouldn't be serializable.
However, again we can store the name (getName) and the class (getDeclaringClass). In contrast to Field we would also have to store the parameter types (getParameterTypes) to resolve it uniquely in case of overloading. These are again classes and strings, so it should be fine. How sounds?
History
Date User Action Args
2019-06-03 22:39:28stefan.richthofersetmessageid: <1559601568.07.0.00723026871185.issue2776@roundup.psfhosted.org>
2019-06-03 22:39:28stefan.richthofersetrecipients: + stefan.richthofer, adamburke, filip.drozdowski
2019-06-03 22:39:28stefan.richthoferlinkissue2776 messages
2019-06-03 22:39:27stefan.richthofercreate