HaxeFoundation/haxe — pull request #1947 by Justinfront (2013-06-25 14:36:07+00:00)
Title: Development

On C# and java targets I got an error with std.

/usr/lib/haxe/std/java/_std/Std.hx:27: lines 27-246 : Missing field instance required by core type

As per Simn suggestion I added the 'instance' method from the c++ Std.hx class.

public static function instance( v : { }, c : Class ) : T {
return Std.is(v, c) ? cast v : null;
}

This fixed this issue for both targets.