Declaring JNI methods in Java target #2288

Closed
andyli opened this Issue Nov 2, 2013 · 2 comments

2 participants

@andyli
Haxe Foundation member

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

private native void my_jni_method();
@waneck waneck was assigned Nov 11, 2013
@andyli
Haxe Foundation member

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
Haxe Foundation member

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 Mar 3, 2014
@waneck waneck closed this in bd1570f Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment