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

Confusing deprecation warning when using --jvm out.jar #11737

Closed
FeldrinH opened this issue Jul 28, 2024 · 2 comments
Closed

Confusing deprecation warning when using --jvm out.jar #11737

FeldrinH opened this issue Jul 28, 2024 · 2 comments
Assignees

Comments

@FeldrinH
Copy link

FeldrinH commented Jul 28, 2024

Following the example in https://haxe.org/manual/target-jvm-getting-started.html I created a Main.hx file and ran the following command:

haxe --jvm bin/Main.jar --main Main

This produced the following output:

Warning : (WDeprecated) --java out.jar -D jvm is deprecated; use --jvm out.jar directly

As far as I can tell I am not using --java out.jar -D jvm, so why am I getting this warning?

Tested with Haxe 4.3.5 on Windows 10.

@Simn Simn added this to the 4.3 Hotfix milestone Jul 28, 2024
@Simn
Copy link
Member

Simn commented Jul 28, 2024

so why am I getting this warning?

Evidently because we"re idiots: 100fcbb

The argument parser sets the platform to Java and adds the Jvm define, and then the generate function warns about that exact situation.

Looks like it"s time for 4.3.6 soon @kLabz!

@kLabz
Copy link
Contributor

kLabz commented Jul 28, 2024

🤦

@kLabz kLabz self-assigned this Jul 29, 2024
@kLabz kLabz removed this from the 4.3 Hotfix milestone Aug 7, 2024
@kLabz kLabz closed this as completed Aug 7, 2024
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

3 participants