79577661

Date: 2025-04-16 16:27:48
Score: 1.5
Natty:
Report link

The answer came from a member of the Clojurian Slack community: To pass an array to an annotation, just pass the value as a vector. I.e., look in the example from this doc for annotation SupportedOptions:

javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"]

Also, for anyone running into something like this, remember @amalloy's suggestion to look at the compiled interface using java -v -p.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @amalloy's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MonkeyWithDarts