r/java • u/TheMrMilchmann • Jun 05 '26
Introducing opt-in requirements for Java APIs
https://osmerion.github.io/OptIn/blog/welcome
49
Upvotes
r/java • u/TheMrMilchmann • Jun 05 '26
View all comments
Show parent comment
2
u/repeating_bears Jun 05 '26
Thanks. The CLI args seem pretty bad for readability
Any reason you can't replace that with a separate global opt-in annotation
People are used to global annotations, e.g. SpringBootApplication. I have personally never used -Xplugin options before and would prefer not to.