Michael Böiers
09/23/2022, 2:05 PM@Service
with a method that declares default parameter values and then call the service from another @Component
not supplying a value, there is a NoSuchMethodError thrown. Apparently Spring creates a (Java) proxy for the service which does not support default parameter values (not supported in Java).
Is there a solution for this problem?Robert Jaros
09/23/2022, 2:43 PM@Service
annotated components with methods with default parameters without problems.Robert Jaros
09/23/2022, 2:44 PMMichael Böiers
09/23/2022, 2:50 PMBen
09/23/2022, 2:52 PMcode compiles and then fails at runtimeThat is the major downside of using a framework like spring where it builds the dependency graph at runtime.
Michael Böiers
09/23/2022, 3:53 PMThomas
09/26/2022, 8:42 AMwakingrufus
09/28/2022, 4:07 AMcorneil
09/29/2022, 5:02 PMwakingrufus
09/29/2022, 5:08 PMMichael Böiers
09/29/2022, 5:29 PMcorneil
09/29/2022, 5:33 PMMichael Böiers
09/29/2022, 5:34 PMcorneil
09/29/2022, 5:36 PMwakingrufus
09/29/2022, 5:39 PMMichael Böiers
09/29/2022, 6:06 PMMichael Böiers
09/29/2022, 6:06 PM