Issue1112785
Created on 2005-01-30.22:09:44 by johahn, last changed 2005-02-21.13:01:08 by bzimmer.
File name |
Uploaded |
Description |
Edit |
Remove |
PyString-687826.patch
|
johahn,
2005-02-21.10:51:58
|
Fixes #687826 |
|
|
msg2410 (view) |
Author: Johan M. Hahn (johahn) |
Date: 2005-01-30.22:09:44 |
|
With this, PyStrings can be passed to Java functions
expecting a CharSequence.
|
msg2411 (view) |
Author: Brian Zimmer (bzimmer) |
Date: 2005-02-19.21:19:27 |
|
Logged In: YES
user_id=37674
The CharSequence is new JDK1.4 so it will require some conditional
compilation to accept this patch.
|
msg2412 (view) |
Author: Brian Zimmer (bzimmer) |
Date: 2005-02-20.20:03:44 |
|
Logged In: YES
user_id=37674
I'd like to see this patch re-written to check for the CharSequence only
once and use isAssignableFrom to check against the parameter class.
|
msg2413 (view) |
Author: Johan M. Hahn (johahn) |
Date: 2005-02-21.10:51:58 |
|
Logged In: YES
user_id=887415
Thanks to your example and Class.isAssignableFrom(), I found
a very nice solution without an explicit check for
CharSequence. Also makes PyString -> Comparable work if
java.version >= 1.2.
|
msg2414 (view) |
Author: Brian Zimmer (bzimmer) |
Date: 2005-02-21.13:01:08 |
|
Logged In: YES
user_id=37674
Much nicer; I'll apply this one. Could you also provide a small test case
for the the bugtests repo? Let me know if you need help.
|
|
Date |
User |
Action |
Args |
2005-01-30 22:09:44 | johahn | create | |
|