Set visibility of premain and agentmain methods to public

Apache 2.0

Check for a behavior change in Java agents.

io.quarkus.updates.core.quarkus37.Jre17AgentMainPreMainPublic
mod run . --recipe=io.quarkus.updates.core.quarkus37.Jre17AgentMainPreMainPublic

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change method access level *..* agentmain(java.lang.String) to public
  2. Change method access level *..* agentmain(java.lang.String, java.lang.instrument.Instrumentation) to public
  3. Change method access level *..* premain(java.lang.String) to public
  4. Change method access level *..* premain(java.lang.String, java.lang.instrument.Instrumentation) to public