pyjnius icon indicating copy to clipboard operation
pyjnius copied to clipboard

JNI-style signatures are ugly, change the api of interfaces to use a more java-like interface.

Open tshirtman opened this issue 10 years ago • 4 comments

example:

@java_method('(ILjava/lang/Object;)Ljava/lang/Object;')

if you don't know jni, this is impossible to understand/write correctly.

something like

from jnius import Object, Int
@java_method((Int, Object), Object)

maybe?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1362781-jni-style-signatures-are-ugly-change-the-api-of-interfaces-to-use-a-more-java-like-interface?utm_campaign=plugin&utm_content=tracker%2F77133&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F77133&utm_medium=issues&utm_source=github).

tshirtman avatar Sep 01 '13 15:09 tshirtman