Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Declaring JNI methods in Java target #2288

Closed
andyli opened this Issue · 2 comments

2 participants

@andyli
Collaborator

Feature request: A way to produce methods that will be outputted as

private native void my_jni_method();
@waneck waneck was assigned
@andyli
Collaborator

In case anyone need it, here is my current workaround:

@:classCode('
    native static boolean getDebugEnabled();
    native static boolean setDebugEnabled(boolean enable);
')
class InputDevice {
    @:extern static function getDebugEnabled():Bool return false;
    @:extern static function setDebugEnabled(enable:Bool):Bool return false;

    /* other normal haxe code */
}
@andyli
Collaborator

The above workaround doesn't work anymore due to #2493.

@waneck Any chance to have this simple feature implemented soon? ;)

@waneck waneck added the 0 - Backlog label
@waneck waneck closed this in bd1570f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.