Commit Graph

216 Commits

Author SHA1 Message Date
Benson Margulies 0ab1468bc5 Fix issue #162 by making 'make tests' pass. 2015-04-30 19:36:56 -04:00
Benson Margulies 2753c59573 Make lists work like Python list containers. 2015-04-30 16:24:27 -04:00
Benson Margulies 0c86904ede Support to map getters to properties. 2015-04-30 16:13:16 -04:00
Benson Margulies 6d91a2fe62 Fix 159: passing the result of autoclass to java.lang.Class parameter. 2015-04-30 14:17:28 -04:00
Mathieu Virbel a54772835c Merge pull request #152 from tonyfinn/patch-1
Re-applies #138
2015-03-13 15:11:57 +01: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 c489ec412b Merge pull request #149 from msmolens/osx-yosemite-build
OS X: use JavaVM framework from current Mac OS SDK
2015-03-12 16:21:32 +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
Mathieu Virbel e149451ed1 fix license. Closes #139 2015-03-02 11:30:23 +01:00
Mathieu Virbel ce3572ba79 fixes hashCode overflow. (disclamer: i wont talk about collision probabiliity or whatever. In my point of view, it seems very low, as the id() is based on the address of the object, it except if you uses tons of memory, you wont get it. And whatever the changes are, this will never keep up safe from colliding with others java object.). Closes #146 2015-03-02 11:22:05 +01:00
Mathieu Virbel a0c9467d42 add native support for CharSequence. We supported String, but not the baseclass CharSequence. Both returns a python string, and a python string can be assigned to both. 2015-03-02 10:59:34 +01:00
Max Smolens 18d506911e Enable setting primitive data type fields on Java classes 2015-02-25 22:59:28 -05:00
Max Smolens 6fa4980b1b OS X: use JavaVM framework from current Mac OS SDK 2015-02-25 22:32:12 -05:00
Mathieu Virbel 9e60152dc5 pyjnius: document detach() function. Closes #97. Closes #107. 2015-02-07 20:07:56 +01:00
Mathieu Virbel 857e4c762a add a jnius.detach() method to detach a thread that used some jni.
This cannot be automatic as jnius do not control the thread creation, so it cannot add a callabck to autocall this method.
It must be added by the user before the thread leave, if it used pyjnius inside.

Ref #107
Ref #97
2015-02-07 19:33:19 +01:00
Mathieu Virbel 614e43626a add few tests about bytearray filling. 2015-02-07 19:31:04 +01:00
Mathieu Virbel d9cdbb7288 add a test with signed char to ensure it still working 2015-02-06 18:34:50 +01:00
Mathieu Virbel 627bdc6d61 Merge pull request #142 from kived/signed-char
use temporary var to handle unsigned char -> jbyte (signed char)
2015-01-27 17:42:41 +01:00
Ryan Pessa 4839674fdd use temporary var to handle unsigned char -> jbyte (signed char) 2015-01-27 10:28:14 -06:00
Tony Finn f0b8ce3856 Fix JVM signatures for the java.lang.Class method.
The methods defined in the Class class contain semicolons at the end of the signatures for methods which return primitives, while these are only required after class names. As a result, a JVM error occurs when attempting to call any of the affected methods.
2015-01-03 18:56:50 +00:00
Mathieu Virbel 5fb4667c18 detect the implementation issue on IsAssignableFrom, and go the other way around for ART. Also dont try to use ExceptionDescribe if there is no Exception throw, or we will get a bad bad native crash. Closes #92 2014-11-13 09:43:11 +01:00
Mathieu Virbel bb3cd4f376 Merge pull request #110 from abrasive/jvmoptions
Add control of JVM startup options
2014-09-30 20:01:09 +02:00
Mathieu Virbel 17a8ae8627 Merge pull request #121 from JustinCappos/patch-1
Update api.rst
2014-09-29 21:31:43 +02:00
Mathieu Virbel 910cac251f Merge pull request #129 from prophittcorey/prophittcorey/typo-fix
Fixed sound recorder example syntax error
2014-09-29 21:31:06 +02:00
Mathieu Virbel 9f9d61618f fixes for Cython 0.21. Closes #131 2014-09-16 10:08:32 +02:00
Akshay Arora b38a365fda Merge pull request #111 from abrasive/multidim
Add support for multidimensional arrays
2014-09-15 01:02:50 +05:30
Corey Prophitt f9e0a87e97 Fixed sound recorder example syntax error 2014-08-30 00:53:12 -07:00
Mathieu Virbel 7826ca53d7 fix architecture detection for python2 and python3 2014-08-19 20:06:44 +02:00
Gabriel Pettier 4f684a90f5 Merge pull request #128 from dessant/patch-1
fix print statement
2014-08-19 15:16:34 +02:00
dessant 9c483237a4 fix print statement 2014-08-19 15:35:20 +03:00
Mathieu Virbel f5b555d3d2 Add specific case for Android/libART: it crash if we check NativeInvocationHandler/InvocationHandler with isAssignableFrom. Plus, include some defaults methods implementation of java.lang.Object (hashCode, toString, equals), which is used by ART. Closes #92. Closes #113. 2014-07-31 13:49:25 +02:00
JustinCappos 0635452378 Update api.rst
grammar fix
2014-07-29 17:57:25 -04: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
Len Trigg 6328de8142 Incorporate patch from #96 and a unit test 2014-05-16 12:12:12 +12:00
James Laird 2910e2fddc Add control of JVM startup options 2014-05-09 18:20:29 +10:00
James Laird 0279d2e870 Add support for multidimensional arrays 2014-05-05 17:29:33 +10:00
Richard Larkin 19d4ddc45d doc: revisions to docs/source/android.rst 2014-03-07 15:24:10 +02:00
Richard Larkin 10b36fdf00 doc: revisions to docs/sources/android.rst 2014-03-07 15:18:35 +02:00
Richard Larkin 2521fbd9c9 doc: revisions to README.md 2014-03-07 14:57:30 +02:00
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