I can not find a single example of how it is @:classCodeused (to embed the native member directly in the file). This fails with Unexpected untypedat compile time:
@:classCode
untyped __java__("public void paintComponent(Graphics g) {doStuff();}");
I can't just use standard Haxe code to have a method paintComponent()because of how Haxe eats methods @:overload(and primarily forces use @:overload).
source
share