Skip to content
Discussion options

You must be logged in to vote

ok figured it out (thanks to @quintesse pointing out the obvious :)

In Java 23+ you need to explicitly enable annotation processors, simplest is to put //JAVAC_OPTIONS -proc:full which "restores" the pre-Java 23 behavor.

But that still does not work for soabase because they don't support default package - and to use naked mains you can't use packages.

I've created https://gist.github.com/maxandersen/1e1cc817125ce3abd09525133398d59b with examples of what works and what does not work.

So in conclusion:

  • JBang works with anntoation processors
  • Java 23+ requires explicit enablement of annotation processor
  • soabuilder does not support default package so fails with javac (and thus also jbang) unl…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@mands
Comment options

@maxandersen
Comment options

@quintesse
Comment options

@maxandersen
Comment options

Comment options

You must be logged in to vote
1 reply
@maxandersen
Comment options

Comment options

You must be logged in to vote
2 replies
@maxandersen
Comment options

@mands
Comment options

Answer selected by mands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants