Commit Graph

249 Commits

Author SHA1 Message Date
Gabriel Pettier d4631f3ba2 fix quickfix :] 2020-04-03 23:38:27 +02:00
Gabriel Pettier b3c7260199
Merge pull request #489 from cmacdonald/master
improvements to specified constructor signature selection
2020-04-03 23:28:09 +02:00
Gabriel Pettier 123b136b12 use getmethods 2020-03-26 16:06:10 +00:00
Guillaume Gay c18ebafba6
Fixes #481
See the bug description in #481
2020-03-25 17:43:06 +01:00
Craig Macdonald f9300aa07d clear scores array when match is found 2020-03-02 22:44:02 +00:00
Craig Macdonald b052833e2a adding quotes for clarity 2020-03-02 22:41:57 +00:00
Craig Macdonald 9ef0227f70 throw error is requested signature not found 2020-03-02 22:37:17 +00:00
Craig Macdonald 9c2e52ca44
change get to pop as per review 2020-02-09 20:48:58 +00:00
Craig Macdonald 49f9c37aeb
change keyword to signature 2020-02-09 20:44:26 +00:00
Craig Macdonald cdd653edf5 Python workarounds for wrong constructor selection. #474 2020-02-08 23:10:38 +00:00
Gabriel Pettier a5d3bb4069 expose the signatures as a signature object instead of `__dir__` 2019-12-15 11:01:10 +01:00
Young Ryul Bae 1ee5d29587 add more comments and typo fix 2019-12-15 10:51:41 +01:00
Young Ryul Bae f710ac56e8 add dunder __dir__ for java methods
For readable / usable propose, added __dir__ to JavaMethod & JavaMultipleMethod. 
It is more human readable than JNI signatures.
2019-12-15 10:51:41 +01:00
Gabriel Pettier e685086aba bump to 1.2.2-dev0 2019-12-05 23:58:02 +01:00
Gabriel Pettier a6102a3692
Merge pull request #460 from wdscxsj/master
Keep quiet when deducing jdk_home from JAVA_HOME
2019-12-05 14:14:19 +01:00
yyang 64d8eef4f9 Keep quiet when deducing jdk_home from JAVA_HOME. 2019-12-05 16:21:22 +08:00
Gabriel Pettier ede72eb1c9 1.2.1 release 2019-12-05 00:08:23 +01:00
Gabriel Pettier 363308d7a9 small cleanup 2019-12-04 23:51:00 +01:00
Gabriel Pettier 64ebe8f9d7 better name for the logger 2019-12-03 21:17:57 +01:00
Gabriel Pettier 807bc5be7d make sure Interface have access to Object's methods
as specified in https://docs.oracle.com/javase/specs/jls/se8/html/jls-9.html#jls-9.2
2019-12-03 21:10:33 +01:00
Gabriel Pettier 76e100b0d5 build all manylinux in one step, no matrix 2019-12-01 02:47:47 +01:00
Gabriel Pettier cbd79e7716 bump 2019-11-30 17:04:26 +01:00
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