Currently, if a test class is annotated with @DisabledInAotMode
, registered AotTestExecutionListener
implementations will still be invoked, which can lead to AOT processing failures if the AotTestExecutionListener
throws an exception -- for example, because it attempts to do something that is not supported during AOT processing.
We should therefore disable AotTestExecutionListener
processing for any test class annotated with @DisabledInAotMode
.