Commit Graph

26 Commits

Author SHA1 Message Date
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