HaxeFoundation / HaxeFoundation/haxe

[Java/JVM] @:strict/@:meta doesn't support using annotations as arguments

Open
#10,516 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Certain java annotation args require using other annotations, but haxe doesn't not allow this at the moment.
Equivalent java code:
`@Foo(@Bar("baz"))`
Haxe code (doesn't work)
`@:meta(Foo(@:meta(Bar("baz"))))`
My current workaround just throws haxe out the window for anything that requires annotations and doing a dual stage build.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Java/JVM handling of @:strict and @:meta, using the issue's Haxe and equivalent Java examples as the reproduction case. Done means Haxe accepts nested annotations as arguments and produces the equivalent Java annotation form, including Foo(@:meta(Bar("baz"))).

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.