r/java • • Jun 05 '26

Introducing opt-in requirements for Java APIs

https://osmerion.github.io/OptIn/blog/welcome
53 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/Additional-Road3924 Jun 06 '26

People are used to global annotations, e.g. SpringBootApplication. I have personally never used -Xplugin options before and would prefer not to.

You're conflating compiler plugin to a runtime annotation, which still does nothing and requires you to opt in manually via SpringbootApplication.run method to setup the runtime.