IllegalArgumentException
in AsciiDoc generation for Spring @EventListeners
without parameters
#1006
Labels
Milestone
Hi all,
I'm currently experimenting with Spring Modulith 1.3.1 and found it to be a great initiative towards supporting the transition from Big Balls of Mud into properly structured monoliths. So first of all, thanks a lot for this :-)
However, I'm currently encountering an
IllegalArgumentException
when trying to generate AsciiDoc diagrams from an experimental codebase that uses a Spring@EventListener
method to store initial data into an ephemeral H2 database. The method signature is as follows:The above code works flawlessly when running the Spring application. However, when attempting AsciiDoc generation using the following method
I'm getting an
IllegalArgumentException
stating thatfrom
spring-modulith/spring-modulith-docs/src/main/java/org/springframework/modulith/docs/Asciidoctor.java
Line 324 in 37b5840
The error is straightforward, and adding a parameter for the caught event and therefore changing the method signature to
fixes the issue.
Still wanted to report it, because Spring seemingly allows omitting the event parameter, while Spring Modulith seems to expect it.
The text was updated successfully, but these errors were encountered: