Commit Graph

202 Commits

Author SHA1 Message Date
Peter Badida 6f49798bd9
Remove incorrect explanation of no matching method error 2019-01-03 21:23:49 +01:00
Peter Badida 01c2590298 Handle case when passing an empty Python tuple/list to Java function as argument 2019-01-02 23:45:47 +01:00
Peter Badida 4d574860cb Fix indentation and debug info in JavaExceptions
no 'definition' or 'pyarray' was visible due to using JavaException.__init__ counterintuitively (98e4f2f1c3/jnius/jnius_export_class.pxi (L11)
2019-01-02 22:27:02 +01:00
Peter Badida 32ed8b9113 Allow conversion from Python array-like structures to bare java.lang.Object 2019-01-02 21:10:35 +01:00
Peter Badida f77a87d3fd Add minor explanation for the no matching methods error 2019-01-02 21:09:37 +01:00
Peter Badida 1c74839e1c
Bump to 1.1.5.dev0 2018-12-05 00:32:19 +01:00
Peter Badida 7bccd20523
Bump to 1.1.4 2018-12-04 23:55:16 +01:00
psader fdc4ee75fc Fix leaked array elements by deleting local refs
Add missing calls to 'DeleteLocalRef' to clean up `jobject*` converting
array data from Python to Java.
2018-11-29 22:32:37 +01:00
Peter Badida d75c428fb7
Bump to new dev version 2018-10-22 22:25:29 +02:00
Peter Badida 3d9ae0275a
Bump to 1.1.3 2018-10-22 21:35:54 +02:00
Gabriel Pettier 42a06f84a4
Merge pull request #325 from djlambert/truncated_props
Only remove 2 characters from field names when method begins with "is"
2018-08-23 13:30:58 +02:00
Gabriel Pettier 98e4f2f1c3
Merge pull request #336 from abrasive/fix_bytes
resolve_class: use bytes default objects when required
2018-08-23 13:29:49 +02:00
Gabriel Pettier 1845a3d7a9
Merge branch 'master' into python-implementing-interface-fixes 2018-04-30 14:44:44 +02:00
Gabriel Pettier d5468fb800 remove a few end of line spaces 2018-04-30 14:34:58 +02:00
Gabriel Pettier 82d872bbbe also JavaMultipleMethod
closes #327
2018-04-30 14:34:15 +02:00
Gabriel Pettier 4d811e766e expose JavaStaticMethod and JavaStaticField in jnius 2018-04-30 14:32:57 +02:00
James Laird-Wah a5e79e809f resolve_class: use bytes default objects as req'd
Fixes a crash on Python 3.5 where PyBytes_Check() does not accept the
str() objects previously supplied.
2018-04-23 20:26:02 +10:00
Derek J. Lambert 62486974f5 If method starts with "is" only remove 2 characters 2018-01-30 09:20:45 -06:00
Dan d9f6f0ab19 Add missing string conversion. 2017-12-13 09:57:37 -05:00
Dan e7dc9be08b Remove always-false isinstance check. 2017-12-13 09:57:34 -05:00
Dan de76124bfc Add PythonJavaClass special case to subclasscheck. 2017-12-13 09:45:14 -05:00
Dan 50b66da8d4 Fix uninitialized pointers. 2017-12-13 09:34:27 -05:00
Dan 8d66f198db Add tests for isinstance, fix edge cases. 2017-12-11 14:04:32 -05:00
Dan 9d0d0519bc Add __instancecheck__ to MetaJavaClass. 2017-12-11 14:04:32 -05:00
Dan 69766e9caa Check j_self for null when converting PythonJavaClass objects. 2017-12-11 14:04:32 -05:00
Dan 16bbb46def Remove earlier (pre-utf16) implementation of convert_jstring_to_python 2017-12-11 12:56:11 -05:00
Mathieu Virbel 5d1e563fd4
Merge pull request #303 from psader/feature/fix_reflext_indexerror
Fix bad JavaException in _getitem
2017-12-11 18:05:42 +01:00
Mathieu Virbel 141800410f
Merge pull request #308 from drmoose/add_missing_nativeinvocationhandler
Add missing NativeInvocationHandler
2017-12-11 18:03:48 +01:00
brandonherzog 85131bc4ee
Merge branch 'master' into fix-unicode 2017-12-05 19:50:20 -05:00
Georgy Dyuldin c9b6348a2b Fix traceback.print_exc call
`traceback.print_exc` expects `limit` as a first argument. Passing
excepiton instance (AssertionError in example below) raises TypeError
inside of traceback module:
```
TypeError: unorderable types: AssertionError() >= int()
```
2017-11-20 18:21:27 +03:00
Dan f3d4f9fec4 Remove redunant .encode() 2017-10-29 17:42:35 -04:00
Jesse Crossen 1b6d0ababd Include NativeInvocationHandler in the installed package and ensure its location is added to the path.
Close #288, #223, #137.
2017-10-24 09:22:04 -04:00
psader 3ce729b41d Fix bad JavaException in _getitem
Fix list iteration test broken since commit efe610b8, which results in a
JavaException with a bad message being thrown.  This was caused by the call to
'Class.forName', which throws the exception.
2017-10-15 18:36:42 -04:00
Mathieu Virbel 72be57a3bd Merge pull request #234 from espes/import-crash
check exceptions in find_javaclass
2017-08-22 10:28:00 +02:00
Mathieu Virbel 406dd2099f Merge pull request #268 from b3b/empty_bytearray
bytearray: fix #267 operations on empty arrays
2017-08-22 10:27:33 +02:00
Mathieu Virbel efe610b89d Merge pull request #271 from InvalidCo/list_getitem_indexerror
for...in iteration of list interfaces
2017-08-22 10:26:59 +02:00
Juan Toledo e3dad6b5f5 Replaced calculation with its value 2017-08-21 17:33:28 +02:00
Juan Toledo 0163333954 Fixed multiple method matching when passing long arguments that cannot actually be represented as ints in java 2017-08-21 17:17:07 +02:00
Juan Toledo ee87ed735c Fixed multiple method matching when passing long arguments that can actually be represented as ints in java 2017-08-21 17:06:06 +02:00
madhawav 19b8a0bfcf Fixed issue #279 which causes callbacks to fail in Windows 64 bit 2017-08-11 23:16:08 +05:30
Brandon Herzog 61592eedb0 Switching to JNI UTF-16 API for strings to fix supplementary unicode char encoding 2017-07-04 00:09:54 -04:00
Mikael Kasimir Harvilahti b4d2d503db add support for subclasses of IndexOutOfBoundsException 2017-05-11 12:19:25 +03:00
Mikael Kasimir Harvilahti 0c0e6641f6 support for for...in iteration 2017-05-08 12:42:56 +03:00
b3b d36d3b6d65 bytearray: fix #267 operations on empty arrays 2017-04-12 16:59:07 +03:00
Mathieu Virbel cb405423df Merge pull request #233 from espes/long-fix
fix longs
2017-03-24 01:47:03 +01:00
Mathieu Virbel f40123a9b8 Bump to 1.1.2-dev 2017-03-24 01:38:57 +01:00
Mathieu Virbel a7e791aa26 Bump to 1.1.1 2017-03-24 01:38:54 +01:00
Mathieu Virbel ca8c52e758 Bump to 1.1.1-dev 2017-03-23 21:04:39 +01:00
Mathieu Virbel 2aa566d37f Bump to 1.1.0 2017-03-23 21:04:35 +01:00
dessant b214ff1f8b pep8 fixes 2017-03-23 19:56:02 +02:00