Message10272

Author zyasoft
Recipients jeff.allen, zyasoft
Date 2015-09-22.17:40:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442943654.41.0.356305377118.issue2399@psf.upfronthosting.co.za>
In-reply-to
Content
Java 8 added a sort method to java.util.List (https://docs.oracle.com/javase/8/docs/api/java/util/List.html#sort-java.util.Comparator-), which takes one arg. Meanwhile JavaProxyList defines list_sort, which takes the standard Python args for sorting a list.

I'm surprised that our version does not override. Perhaps related to http://bugs.jython.org/issue2391?

Easy to reproduce on Jython running on Java 8:

$ dist/bin/jython
Jython 2.7.1 (default:7ebdc6c80d55+, Sep 21 2015, 18:28:51)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.util import ArrayList
>>> x = ArrayList([1, 0])
>>> x.sort()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sort(): expected 1 args; got 0
History
Date User Action Args
2015-09-22 17:40:54zyasoftsetmessageid: <1442943654.41.0.356305377118.issue2399@psf.upfronthosting.co.za>
2015-09-22 17:40:54zyasoftsetrecipients: + zyasoft, jeff.allen
2015-09-22 17:40:54zyasoftlinkissue2399 messages
2015-09-22 17:40:53zyasoftcreate