Message10588

Author zyasoft
Recipients rhpatrick, zyasoft
Date 2016-01-05.05:06:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451970402.44.0.107135488078.issue2423@psf.upfronthosting.co.za>
In-reply-to
Content
As of Jython 2.5, we unified the jarray and array modules. So that's why you get <type 'array.array'> - it's the same as in CPython:

$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from array import array
>>> x = array('b', 'foo')
>>> x
array('b', [102, 111, 111])
>>> type(x)
<type 'array.array'>

I wonder if the underlying problem is supporting vararg-style methods like getDeclaredMethod. Note that you change your script like so and it works:

method = javaURLClassLoader.getDeclaredMethod('addURL', [javaURL])

Also this is an easier setup than using array/jarray.

But we should still look at the conversion to Java for such vararg support for array objects - that should work. The starting point would be the changes for #1615.
History
Date User Action Args
2016-01-05 05:06:42zyasoftsetmessageid: <1451970402.44.0.107135488078.issue2423@psf.upfronthosting.co.za>
2016-01-05 05:06:42zyasoftsetrecipients: + zyasoft, rhpatrick
2016-01-05 05:06:42zyasoftlinkissue2423 messages
2016-01-05 05:06:41zyasoftcreate