Skip to content
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

enums again #45

Closed
Simn opened this issue Apr 7, 2019 · 2 comments
Closed

enums again #45

Simn opened this issue Apr 7, 2019 · 2 comments

Comments

@Simn
Copy link
Owner

Simn commented Apr 7, 2019

Something I didn't realize is that genjava allows using java-native enums as Haxe enums. The only way to support that would be to make our enums extend java.lang.Enum so there's a common API.

This isn't entirely free because the java.lang.Enum constructor wants a string of the enum name. It would also mean dropping (parts of) the annotation-based reflection approach.

@Simn
Copy link
Owner Author

Simn commented Apr 7, 2019

Oh there's also problems with name clashes between haxe enum argument names and the public API of java.lang.Enum. We should however be able to map that away because there's no Haxe API that's based on enum arg names.

Simn added a commit that referenced this issue Apr 12, 2019
@Simn
Copy link
Owner Author

Simn commented Apr 15, 2019

This is done, will deal with the clash issue in #50.

@Simn Simn closed this as completed Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant