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
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
Benson Margulies
e1070965cc
Support Python 3.4
...
see if we can't make travis happy.
2015-05-03 11:24:27 -04:00
Mathieu Virbel
6208c609eb
Merge pull request #150 from msmolens/set-fields
...
Enable setting primitive data type fields on Java classes
2015-03-12 16:22:45 +01:00
Mathieu Virbel
9425a2cc31
Merge pull request #115 from Lenbok/issue-96-exception-handling
...
Issue 96 improved exception handling
2015-03-12 16:20:17 +01:00
Max Smolens
18d506911e
Enable setting primitive data type fields on Java classes
2015-02-25 22:59:28 -05:00
Mathieu Virbel
a45ba1737e
fix issue with "cannot allocate an array of constant size 0" on Windows / MSVC compiler
2014-05-22 17:54:51 +02:00
Lenbok
d93c911d9e
Add improved exception handling:
...
- Disable calling ExceptionDescribe, as this pollutes stderr, making it harder
to implement clean exception handling. JNI documentation describes it as being for
debugging purposes.
- Extract separate fields for the exception class name, exception message, and
exception stack trace, and add these as attributes to JavaException. Calling
code can now decide for itself whether and how to present this information.
2014-05-19 10:22:36 +12: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
Michał Zieliński
51889323a3
Fix field dereference when multiple instances of a class exist. Fixes #77
2013-09-16 22:04:56 +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
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
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
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
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
ac94b7c815
fix crash in Java, it look like changing CreateLocalRef to CreateGlobalRef works, and retain correctly some references needed for the invocation. But i'm not entirely sure about the implication.
2013-03-13 18:53:25 +01:00
Mathieu Virbel
dcfe369f1e
various fix for java/python implementation. It finally start working, but still lot to do.
...
Use: make testimplem, and check the jnius/jnius_utils.pxi:test() function.
2012-12-31 05:15:09 +01:00
tshirtman
9b758a81c3
some clarifications for java classes extended support
2012-12-31 00:15:25 +01:00
Gabriel
70fa391458
Merge branch 'master' into extend_class_support
2012-12-23 17:02:17 +01:00
Amirouche Boubekki
b8ee0f8ab5
fix method resolution when they are varargs
2012-09-30 22:39:38 +02:00
Amirouche Boubekki
c58de98b8a
no need to recompute return and args definition
2012-09-30 21:50:19 +02:00
Amirouche Boubekki
65d3d9bc12
use of iteritems to retrieve key and value
2012-09-30 21:48:58 +02:00
tshirtman
52aea7efb8
start to add native invocation handler
...
+fix badly formated string
2012-09-16 00:45:32 +02:00
tshirtman
82b703c0c1
Merge branch 'master' into extend_class_support
...
Conflicts:
jnius/jnius_export_class.pxi
2012-09-06 17:48:25 +02:00
Gabriel Pettier
4ff916dfdf
Merge pull request #24 from apalala/classpath
...
Allow for '*' wildcards in CLASSPATH+(some tipos).
2012-09-06 05:47:49 -07:00
tshirtman
7ac9bcd3d7
partial work on extending java classes from python
...
non-functionnal!
2012-09-06 14:19:45 +02:00
gabriel.pettier
858bff6e25
varargs works!
...
at least for printf, and probably for other methods accepting Strings
need more tests cases!
2012-08-26 17:52:19 +02:00
gabriel.pettier
708b2d075f
Doesn't break the tests anymore, add test for varargs, not passing (yet)
2012-08-26 15:53:11 +02:00
gabriel.pettier
17258f100d
work on varargs support
2012-08-26 02:51:22 +02:00
Juancarlo Añez
9bd899e371
Allow for '*' wildcards in CLASSPATH+(some tipos).
2012-08-25 10:24:48 -04:30
Mathieu Virbel
79b564a338
renaming to JavaMultipleMethod.
2012-08-20 11:08:32 +02:00
Mathieu Virbel
7bd35411bf
split jnius.pyx
2012-08-20 09:35:14 +02:00