Potential bug due to the non-determinicity of Class#getDeclaredConstructors #682
During initializing the modules, reflection is used to instantiate various classes needed for the modules.
However, the Javadoc from
Thus, relying on the order of the constructors obtained might result in unexpected behaviour.
A real erroneous scenario occurred during initializing the
Steps to reproduce
There is no good way to reliably reproduce this by some simple application. To reproduce the issue, create a simple
Then add a conditional breakpoint to line 70 in
After that, resume the execution and the mentioned errors should pop right up in the standard output. Please keep in mind that this difficult hack to reproduce the issue is to simulate a potential scenario that could very well happen due to the non-determinicity of the order of elements returned by
Reality and expectation
The text was updated successfully, but these errors were encountered:
@Oja95 thanks for your help in finding and fixing this bug.