Issue1395

classification
Title: PyList.indexOf() and PyTuple.indexOf() do not function properly
Type: Severity: normal
Components: Versions: 2.5.0
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: zyasoft Nosy List: MrMeanie, fwierzbicki, pjenvey, zyasoft
Priority: Keywords: patch

Created on 2009-07-03.15:32:29 by MrMeanie, last changed 2010-02-05.20:01:19 by fwierzbicki.

Files
File name Uploaded Description Edit Remove
Jython_r6505_indexOf_patch_20090703_v1.patch MrMeanie, 2009-07-03.15:32:29 Patch against trunk, r6505
Messages
msg4879 (view) Author: Geoffrey French (MrMeanie) Date: 2009-07-03.15:32:28
PyList.indexOf() and PyTuple.indexOf() fail due to not wrapping the
incoming Java object before passing to the indexOf() method of the
underlying container.

tests/java/javatests/ListTest.java contains a test method called
indexOf() to test this method, however, it is not called by testAll();
it is never used.

Please find attached a patch that:

- renames ListTest.indexOf() to ListTest.test_indexOf()
- calls ListTest.test_indexOf() from ListTest.testAll()
- Fixes PyList.indexOf()
- Fixes PyTuple.indexOf()

Passes regression tests.
msg4888 (view) Author: Philip Jenvey (pjenvey) Date: 2009-07-08.00:51:08
Simple fix, looks very straightforward. Over to Jim
History
Date User Action Args
2010-02-05 20:01:19fwierzbickisetnosy: + fwierzbicki
2009-07-08 00:51:08pjenveysetassignee: zyasoft
messages: + msg4888
nosy: + pjenvey, zyasoft
2009-07-03 15:32:29MrMeaniecreate