Gabriel Pettier
9ee1183cda
fix import in python 3.8/windows
2019-11-30 16:27:24 +01:00
Gabriel Pettier
b042e82d42
fix import of env module at runtime
2019-11-30 16:27:24 +01:00
Gabriel Pettier
36b10ab900
better guess of java home
2019-11-30 16:27:24 +01:00
Gabriel Pettier
30cda7518f
manylinux for linux build
2019-11-30 16:27:24 +01:00
Gabriel Pettier
810e391092
move env logic to submodule, allow runtime lookup
...
this should allow building portable wheels
2019-11-30 16:21:28 +01:00
Gabriel Pettier
fe41ee5bd5
Continious Integration using github actions
2019-11-30 15:47:48 +01:00
Gabriel Pettier
806e444371
try to guess JAVA_HOME on linux if it's not defined
2019-11-24 02:34:12 +01:00
Gabriel Pettier
bed96ea722
better error when JAVA_HOME is not declared
2019-11-24 02:34:12 +01:00
Gabriel Pettier
b748257a66
make sure methods are discovered in reverse-inheritance order
...
fix for #408
2019-02-20 21:39:29 +01:00
Peter Badida
5f6aa738b2
Bump to 1.2.1.dev0
2019-02-04 10:58:50 +01:00
Peter Badida
8f3b16e23b
Bump to 1.2.0
2019-02-04 10:45:24 +01:00
Peter Badida
306b012f39
Fix int/long issue at jnius_proxy.py_invoke0
...
We need to make a difference between the int and long on Py2 because
of the different storage size which can cause 0L being returned even
if 0 (int) is passed into the function.
2 ** 31
+-----+-----+
|int | xxx |
| long |
+-----+-----+
2019-02-03 19:52:51 +01:00
Peter Badida
4db08d5488
Revert "Convert java.lang.Long to INT if < 2 ** 31 else to LONG"
...
This reverts commit 54c5678ac6
.
2019-02-03 00:50:02 +01:00
Peter Badida
54c5678ac6
Convert java.lang.Long to INT if < 2 ** 31 else to LONG
...
LONG is in Py3 merged with INT type and renamed to INT without 'L' being
present in the string representation of the number but having the full
storage capacity of LONG. On Py2 however it will cause type issues when
we convert java.lang.Long with size < 2 ** 31 into Py2 long and convert
it back. Therefore convert java.lang.Long to Py2 long *only* if it exceeds
the maximum value of INT (2 ** 31).
2019-02-02 23:49:31 +01:00
Peter Badida
83a9a00cf3
Always check for exception JavaClass.call_constructor()
2019-02-01 12:44:38 +01:00
Peter Badida
b454ecb2fd
Use PY2 to separate CPython 2/3 for compat
2019-01-31 18:02:00 +01:00
Peter Badida
d6b14100be
Fix baking of len() calls in jnius_utilx.pxi
2019-01-31 17:52:04 +01:00
Peter Badida
14fa9401a1
Convert Python numeric types if method accepts java.lang.Object
2019-01-31 15:28:22 +01:00
Peter Badida
1ca8173f47
Add compat bool for PY3 instead of always comparing versions
2019-01-31 15:28:22 +01:00
Peter Badida
6417502ce7
Bake len() calls for jnius_utils.calculate_score
2019-01-31 15:28:22 +01:00
Peter Badida
fd2e5e0edc
Fix exception message
2019-01-31 15:25:26 +01:00
Peter Badida
996c0a7902
Include signatures to exceptions
2019-01-31 11:56:39 +01:00
Peter Badida
186e5a4989
Fix missing 'to_unicode()' call
2019-01-05 17:15:37 +01:00
Peter Badida
1c747af560
Switch all 'basestring' to 'jnius_compat.base_string'
2019-01-05 15:09:53 +01:00
Peter Badida
d1647b6952
Create compat file to handle basestring issues and more
2019-01-05 15:09:26 +01:00
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