Message12556
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? |
|
Date |
User |
Action |
Args |
2019-06-03 22:39:28 | stefan.richthofer | set | messageid: <1559601568.07.0.00723026871185.issue2776@roundup.psfhosted.org> |
2019-06-03 22:39:28 | stefan.richthofer | set | recipients:
+ stefan.richthofer, adamburke, filip.drozdowski |
2019-06-03 22:39:28 | stefan.richthofer | link | issue2776 messages |
2019-06-03 22:39:27 | stefan.richthofer | create | |
|