HaxeFoundation / HaxeFoundation/haxe

[jvm] awkward main class naming with module-level main

Open
#9,609 2 comments 0 reactions 0 assignees View on GitHub
enhancement platform-jvm
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

If you want to use `java -cp`, the name class name must be given explicitly, and that's quite awkward to use with a module-level `main()` field because of the naming:

```
java -cp _Main.Main_Fields_
```

Could we do something about that, e.g. have a special case for entry points and simply generate it as `Main`?

(for `-jar` the main name from the manifest is implied, but you can't use `-jar` and `-cp` at the same time)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.