Commit Graph

180 Commits

Author SHA1 Message Date
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
Akshay Arora 81aabc58e9 Update __init__.py 2016-10-27 11:42:14 +05:30
Akshay Arora b5a1ecb7ec Detach only on android 2016-10-26 20:42:55 +05:30
Akshay Arora 9838660626 call detach on all threads before exiting 2016-10-26 20:34:01 +05:30
espes 27a4a85ac5 check for exceptions in find_javaclass 2016-08-29 13:47:37 -07:00
espes 57efacb311 fix longs 2016-08-29 13:43:32 -07:00
Mathieu Virbel ddcaa432e5 fix python3 issue for decoding str (it might come from an updated Cython.). Closes #218 2016-04-18 20:28:13 +02:00
Mathieu Virbel 57c8461053 remove const_char, as Cython supports const from 0.18 2016-04-05 14:47:00 +02:00
akshayaurora 9565b7de85 charSequence: remove repeated code. 2016-03-17 04:34:02 +05:30
akshayaurora 6fc9107231 call toString forCharSequence 2016-03-16 14:56:18 +05:30
Mathieu Virbel 6a7421df72 remove debug from a previous commit/pr. Closes #190 2015-12-11 17:06:49 +01:00
Mathieu Virbel ac2324d96e fixes bytearray tests again (python3) 2015-12-10 14:14:48 +01:00
Mathieu Virbel c5863be424 bytearray: fix bytes -128-127 from java to 0-255 python 2015-12-10 13:11:25 +01:00
Mathieu Virbel f11f88e2df Merge branch 'master' of github.com:kivy/pyjnius
Conflicts:
	jnius/jnius_conversion.pxi
2015-12-10 00:56:06 +01:00
Mathieu Virbel 5bb7e6cfdb supports bytearray as argument for byte[]. Useful for socket/bluetooth reading (no need to read one by one) 2015-12-10 00:55:08 +01:00
bob c2cb331f41 compilation error fixed 2015-11-09 14:08:57 +02:00
Benson Margulies 209e57ed0d eliminate use of 'future' outside of tests, try to fix p2/p3 issues with setup. 2015-11-04 07:33:15 -05:00
Benson Margulies 3968f3af17 Merge branch 'master' of github.com:kivy/pyjnius into python-34
Conflicts:
	.travis.yml
	Makefile
	setup.py
	tests/test_proxy.py
2015-11-03 07:51:45 -05:00
dessant fc77dd624d Merge pull request #133 from chrisjrn/signatures
API for human-readable method signatures
2015-11-03 14:00:35 +02:00
dessant 5b4378ac85 Merge pull request #163 from benson-basis/fix-build-tests
Fix build tests
2015-11-03 13:57:59 +02:00
Akshay Arora 4adf0aa725 Merge pull request #153 from retsyo/patch-2
Another missing PR
2015-10-07 11:46:57 +05:30
Mathieu Virbel 2627d95227 Fixes multiples memory leak in exception analysis, find_javaclass, and class instanciations 2015-07-26 14:29:51 +02:00
gabriel pettier ae359e054d allow setting java fields of object type
using convert_python_to_jobject
2015-07-21 16:36:42 +02:00