Closed bjkeller closed 7 years ago
The issue was caused by the fact that the first two parameters of an enum constructor are synthetic: they are generated by the compiler to be able to invoke the constructor of the superclass java.lang.Enum
. So when the parameters are loaded through reflection, the number of parameters is different from the expected (the number of parameters in the source code).
The commit https://github.com/albertogoffi/toradocu/commit/d7688cf98da88c9229a56a126364f01424799b0b solves the problem, ignoring the first two parameters of an enum constructor loaded with reflection.
On randoop branch, when run with the enum
org.apache.commons.math3.exception.util.LocalizedFormats
as the target class, get the followingHappens also for:
org.apache.commons.math3.ode.sampling.StepNormalizerBounds
(also an enum)