Closed Yukooo closed 1 year ago
Could you set a breakpoint in the getDeclaredAnnotations
method where the exception is thrown? I assume that the JVM has some sort of mismatch between the annotation array and the amount of parameters.
Have you tried using a more recent JVM? I have fixed a row of issues in the JVM myself to get these annotation issues resolved, but not all of it is backported.
If there an enum class that has constructor with some parameters with annotation @org.springframework.lang.NonNull then it fails with the next stack trace
Patient zero is this
After some small investigation it was found that if @org.springframework.lang.NonNull is present it fails of it is not present everything is ok. In addition I tried to use @NotNull from JetBrains and to my surprise, it is OK no exception, so something wrong only with @org.springframework.lang.NonNull