Commit Graph

20 Commits

Author SHA1 Message Date
Mathieu Virbel a2d0076e56 added convert_python_to_jobject: don't do convert to java primitive/jvalue, but jobject. fixed array translation. 2013-01-02 18:11:12 +01:00
Mathieu Virbel f12abcbc88 add auto conversion for java.lang.Long/Integer/Float/Double/Short/Boolean/Byte/Character 2013-01-02 12:16:51 +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
Gabriel 70fa391458 Merge branch 'master' into extend_class_support 2012-12-23 17:02:17 +01:00
Mathieu Virbel f03dfdf886 -always- release the arrays, whatever is the iscopy boolean. According to the documentation, "The result is valid until the corresponding Release<PrimitiveType>ArrayElements() function is called". The iscopy boolean serve just for another case: "Since the returned array may be a copy of the Java array, changes made to the returned array will not necessarily be reflected in the original array until Release<PrimitiveType>ArrayElements() is called.Since the returned array may be a copy of the Java array, changes made to the returned array will not necessarily be reflected in the original array until Release<PrimitiveType>ArrayElements() is called." 2012-12-21 03:52:59 +01:00
Amirouche Boubekki fcfb1e64a8 added support for Python class as parameter of java methods that takes Java Class object as parameter 2012-10-14 23:00:19 +02:00
Amirouche Boubekki c216057647 convert arrays returned as Java Object to python list 2012-10-01 02:20:58 +02:00
Amirouche Boubekki 4a6945accd convert list of integer, float and long to their equivalent Java Array object 2012-10-01 01:30:51 +02:00
Amirouche Boubekki 20b4bd5d62 allow to use python list and tuple as Object params 2012-10-01 01:21:24 +02:00
Amirouche Boubekki 78a68134ae no need to raise an exception here 2012-10-01 01:16:57 +02: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
Mathieu Virbel 77f2928e0b fixes for subclasses. closes #3 2012-08-20 10:34:14 +02:00
Mathieu Virbel 4730c2b802 reorder functions 2012-08-20 09:40:18 +02:00
Mathieu Virbel 60ee14ed6f add the previous tests from python-for-android/javawrapper branch.
+ fix findclass (need cleaning)
+ fix array return with chars
+ export reflect module by default (it's already used in jnius so..)
2012-08-18 12:59:15 +02:00
Mathieu Virbel bb0923d77d fix System.out.println('hello') crash due to a race condition: the instancatied JavaClass for "out" was deallocated before the __call__ of the println. >_< 2012-08-18 04:14:53 +02:00
Mathieu Virbel 7eecc34237 fix autoclass when return 2012-08-15 23:36:40 +02:00
Mathieu Virbel 7721b70c46 always convert the return with autoclass() 2012-08-15 21:54:53 +02:00
Mathieu Virbel 77139529ad add support for multiple signatures on constructors and methods. 2012-08-15 19:16:39 +02:00
Mathieu Virbel 69fe77c403 refactor the conversion functions, move them into jnius_conversion.pxi, and factorize the jobject conversion. 2012-08-15 17:26:24 +02:00