You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when you add a parameter to MyService constructor, it still compiles but fails at runtime with NoSuchMethodError.
Output
Exception in thread "main" java.lang.NoSuchMethodError:'void example.MyService.<init>(java.lang.String)'
at example.Hello$.<clinit>(Hello.scala:5)
at example.Hello.main(Hello.scala)