Title: regression in PyReflectedFunction: static Java methods are no longer callable
Type: behaviour Severity: urgent
Components: Core Versions: Jython 2.5
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: doublep, fwierzbicki, zyasoft
Priority: low Keywords:

Created on 2011-04-26.14:29:31 by doublep, last changed 2014-09-26.07:10:35 by doublep.

File name Uploaded Description Edit Remove doublep, 2011-04-26.14:29:30 testcase doublep, 2011-04-26.14:33:30 testcase
msg6516 (view) Author: (doublep) Date: 2011-04-26.14:29:30
This is a regression in 2.5.2 compared to 2.5.1.  In 2.5.1 the attached script produces no output as it should.  In 2.5.2 it fails with java.lang.NegativeArraySizeException.

In a real code I also see 'some_function(): expected 1 args; got 0' when executing 'some_function ('bla')' --- this also worked fine in 2.5.1.
msg6517 (view) Author: (doublep) Date: 2011-04-26.14:33:30
Please disregard '' --- it is a wrong file.  See this short Java code instead.
msg6556 (view) Author: (doublep) Date: 2011-06-20.15:28:36
msg9047 (view) Author: Jim Baker (zyasoft) Date: 2014-09-26.05:58:40
Interesting usage of Jython's internals
msg9051 (view) Author: (doublep) Date: 2014-09-26.07:10:35
Well, how do I tell apart internals from not? PyNone is in the same package, for instance.

PyReflectedFunction seems to be a good way to make Java methods available to scripts detached from their classes. What I do is collect a number of "very common" methods from my application and make them visible to scripts without importing anything, much like builtins.
Date User Action Args
2014-09-26 07:10:35doublepsetmessages: + msg9051
2014-09-26 05:58:40zyasoftsetpriority: normal -> low
assignee: fwierzbicki ->
messages: + msg9047
nosy: + zyasoft
2013-02-19 23:55:06fwierzbickisetpriority: normal
assignee: fwierzbicki
resolution: remind
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.2rc
2011-06-20 15:28:36doublepsetmessages: + msg6556
2011-04-26 14:33:30doublepsetfiles: +
messages: + msg6517
2011-04-26 14:29:31doublepcreate