Message1847
When importing java class with import,
type of its methods is 'method'.
When the same class is imported with __import__ statement, type of its methods is 'reflectedfunction'
Jython 2.2rc3 on java1.6.0_01
Type "copyright", "credits" or "license" for more information.
>>> from java.lang import String
>>> type(String().indexOf)
<type 'method'>
>>> clazz = __import__('java.lang.String', {}, {}, 'String')
>>> type(clazz.indexOf)
<type 'reflectedfunction'>
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:59 | admin | link | issue1776172 messages |
| 2008-02-20 17:17:59 | admin | create | |
|