Mathieu Virbel
d5d2926190
raise an exception if the signature have invalid character + fix pyjnius documentation about array declaration in signature
2014-01-21 09:48:48 +01:00
Mathieu Virbel
de6af494d2
Merge pull request #87 from kevlened/squashed_windows_branch
...
Successfully compiled for Windows
2014-01-15 07:49:28 -08:00
Gabriel Pettier
6afbdb687b
Merge pull request #94 from remram44/fix-double-licenses
...
Removes LGPL license in 'COPYING'
2014-01-10 13:09:51 -08:00
Remi Rampin
33cddb2d53
Removes LGPL license in 'COPYING'
...
There is already the MIT license in 'LICENSE'.
2014-01-10 13:37:25 -05:00
kevlened
445ee20643
Fixed platform selection error
2013-11-25 23:44:46 -05:00
Len Boyette
d7bf5aa8a1
Improved JDK_HOME identification in Windows
2013-11-25 22:41:33 -05:00
Len Boyette
f88f3ed170
Compile in Windows successfully
...
Fixed jvm.lib reference
2013-11-25 22:41:12 -05:00
Len Boyette
cf93f7afc8
Removed hard-coded linux directory in the include_dirs
2013-11-24 19:37:06 -05:00
Mathieu Virbel
b7a583984d
Merge pull request #74 from Ian-Foote/master
...
Document autoclass syntax for nested Java classes.
2013-10-25 07:15:08 -07:00
Mathieu Virbel
9d7c90135b
Merge pull request #72 from limodou/patch-1
...
Fix string format error in 2.6
2013-10-25 07:14:49 -07:00
Mathieu Virbel
6ea6173346
Merge pull request #78 from zielmicha/master
...
Fix field dereference when multiple instances of a class exist. Fixes #77
2013-10-25 07:14:29 -07:00
Mathieu Virbel
5fc9e58b4c
fix a leak when calling constructor with string arguments
2013-10-16 11:52:14 +02:00
Ian
6a9705138f
Remove duplicated text from TextToSpeech example.
2013-09-22 10:55:59 +01:00
Michał Zieliński
51889323a3
Fix field dereference when multiple instances of a class exist. Fixes #77
2013-09-16 22:04:56 +02:00
Ian Foote
9ecf8b2263
Document autoclass syntax for nested Java classes.
2013-09-11 22:41:19 +01:00
Mathieu Virbel
693275fe48
new ByteArray native class, used to transport [B in python, instead of using Python list + integer.
...
ByteArray have .tostring() + .tolist(), and support slices / item lookup / size, but everything is readonly.
2013-09-11 17:18:49 +02:00
Mathieu Virbel
af824144cc
fixes for convert_jobject_to_python to correctly handle [B as parameters, as well as "Ljava/lang/Object;" that can be converted into "[Ljava/lang/String;"
2013-09-10 11:05:13 +02:00
Mathieu Virbel
9a18e94aa9
proxy: add "except *" to correctly propagate the python exception in invoke0, and let traceback print it. (python exception doesn't go through java... ^^).
...
+ avoid double-referencing in proxy. Before, we was having weird issue without it, but i'm not able to trigger it right now. Do the clean way.
2013-09-10 11:03:55 +02:00
limodou
a92308975b
Fix string format error in 2.6
...
In 2.6, you should give index value to format.
2013-08-29 16:14:06 +08:00
Mathieu Virbel
04c8ced2a7
Merge branch 'master' of github.com:kivy/pyjnius
2013-08-17 19:14:04 +02:00
Mathieu Virbel
8541c489ff
make sure that GetObjectArrayElement are freed.
2013-08-17 19:13:49 +02:00
Gabriel Pettier
c746796723
Merge pull request #69 from smglab/master
...
fix NotImplemented not found
2013-08-12 06:43:44 -07:00
Max Shabalihin
d226263174
fix NotImplemented not found
2013-08-12 17:26:44 +04:00
Mathieu Virbel
54097ccacb
dont overload the type, or later if will failed as well.
2013-08-06 16:24:19 +02:00
Mathieu Virbel
afc1d9d788
Merge pull request #66 from zielmicha/master
...
Check for exception after calling constructor
2013-08-02 07:04:16 -07:00
Michał Zieliński
35c410e542
fix lookup_java_object_name local reference leak
2013-08-02 14:14:50 +02:00
Michał Zieliński
d6a3d1cf5f
Delete local reference after constructing class
2013-08-01 22:38:27 +02:00
Michał Zieliński
2df76cb7f6
Check for exception after calling constructor
2013-08-01 21:25:20 +02:00
Mathieu Virbel
1dce4a0b5d
Pyjnius is now under MIT license
2013-08-01 16:36:25 +02:00
Mathieu Virbel
481b3e5d30
basic support for output args. works only in the original type allow slice assignment. We gently ignore TypeError if the assignation didnt work. closes #58
2013-07-02 09:43:39 +02:00
Mathieu Virbel
8e2564ccc8
update README.md. closes #64
2013-07-02 09:20:35 +02:00
Mathieu Virbel
5ff62b146e
last fixes to make pyjnius Java-thread proof. If you call any jnius related from a C thread, it will leak and/or crash (this hasnt been tested).
2013-06-25 11:49:42 +02:00
Mathieu Virbel
21d365df24
XXX avoid to switch between thread when invoke0 is called / new push_jnienv/pop_jnienv. Without it, if another thread use pyjnius = crash. (i have explored TLS storage for storing j_env, but it seems not available on Android.
2013-06-25 00:08:24 +02:00
Mathieu Virbel
3db9a76ed8
class: fix thread issues when using a class between thread (j_cls MUST be a global ref to work.)
2013-06-24 22:07:31 +02:00
Mathieu Virbel
8349037dd3
jnius: fix push/pop jnienv in order to avoid GIL going on using the previous thread env while we are still on the current thread
2013-06-24 18:36:58 +02:00
Mathieu Virbel
eedf301d60
Merge branch 'master' of github.com:kivy/pyjnius
2013-06-24 17:58:34 +02:00
Mathieu Virbel
5bf97da477
jnius: refactor to not save jni env, and use the current pushed/pop env. This resolve few issues when pyjnius is called from a proxy (error such as E/dalvikvm( 6036): JNI ERROR: env->self != thread-self (0x68415860 vs. 0x400bb010); auto-correcting)
2013-06-24 17:58:20 +02:00
Mathieu Virbel
16eee21807
Merge pull request #63 from amirouche/master
...
improve JRE/JDK home detection using which and default JRE location when JDK is installed
2013-06-24 04:32:49 -07:00
Mathieu Virbel
2c5a14dae2
fix encoding issues in test_implementation.py
2013-06-24 09:36:31 +02:00
Mathieu Virbel
68165ed04b
add tests for testing Python string -> [B, using ByteBuffer.wrap(byte[])
2013-06-24 09:24:37 +02:00
Mathieu Virbel
5ec6d80ba3
accept python string as a valid argument for [B and [C
2013-06-24 09:21:40 +02:00
Mathieu Virbel
3fe55c1bb2
Allow to pass None for array (example: String[] can be null.)
2013-06-23 15:46:25 +02:00
Mathieu Virbel
bd3f007ed3
add missing documentation for __javacontext__ in PythonJavaClass
2013-06-23 15:45:48 +02:00
Amirouche Boubekki
44df78e2cb
improve JDK_HOME and JRE_HOME detection
2013-06-08 15:33:01 +02:00
Mathieu Virbel
ded2378679
Add __javacontext__ for proxy class, which can be either "system" or "app". Default goes to system if non existent.
...
Also check the exception before trying to convert the returned value, as i've experienced, sometimes the value returned is not NULL, but is not valid at all, cause an exception happen.
2013-04-28 19:15:25 +02:00
Mathieu Virbel
1844de341e
add a better repr for LocalRef class (ie, indicate the source reference we came from.)
2013-04-28 19:14:14 +02:00
Mathieu Virbel
4cf0b865b9
cython 0.19 fixes, jlong was interpreted as a number, not as a pointer value anymore.
2013-04-28 19:13:23 +02:00
tshirtman
7baebbb465
test unicode handling
2013-04-17 17:03:20 +02:00
Mathieu Virbel
abc36192c3
fix tests
2013-03-24 18:49:31 -05:00
Mathieu Virbel
242245a6f4
proxy: force GIL on invoke0, and add a special case for $Proxy name (android failed to FindClass)
2013-03-24 18:45:33 -05:00