-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception:Too late to register class on cs and java #24
Comments
Any updates on this? class PlaceStruct implements hxbit.Serializable {
@s public var name:String;
@s public var address:String;
public function new(name:String, address:String) {
this.name = name;
this.address = address;
}
}
//--------------------------
//Call constructor anywhere:
new PlaceStruct("Name", "Address"); // java.lang.ExceptionInInitializerError Did I miss something? |
Seems strange, we insert with macros a @waneck what is the status of static var initialization on java output? |
Seems like a Haxe issue, not hxbit specific. Closing this issue for now (follow up on referenced haxe issue) |
I don't know if it is a bug of the cs and java target or of hxbit. But the following code throws an exception on both targets "Too late to register class" at hxbit.Serializer.registerClass()
So I post the issue here.
The text was updated successfully, but these errors were encountered: