Skip to content

Update annotation processor to handle GC refs (#70)#83

Merged
andreaTP merged 1 commit into
bytecodealliance:mainfrom
andreaTP:issue-70
Jul 7, 2026
Merged

Update annotation processor to handle GC refs (#70)#83
andreaTP merged 1 commit into
bytecodealliance:mainfrom
andreaTP:issue-70

Conversation

@andreaTP

@andreaTP andreaTP commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #70

Testing it with JavaC+WebImage breaks as the exported functions are 14K, but for normal use-cases this should be enough.

FYI @RefuX

- listOfValueTypes() handles all abstract heap types and concrete typed refs
- Multi-return with object refs for imports now works (was UnsupportedOperationException)
- HostFunction.Builder with withRefsHandle() replaces anonymous WasmFunctionHandle boilerplate
- Host-function import validation uses ValType.matches() for structural comparison
- Integration test covers all permutations of primitives and GC refs in params/returns
@andreaTP andreaTP merged commit 739854c into bytecodealliance:main Jul 7, 2026
25 checks passed
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

Successfully merging this pull request may close these issues.

Update annotation processor to handle GC Refs

1 participant