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.
Currently, if a test class is annotated with
@DisabledInAotMode, registeredAotTestExecutionListenerimplementations will still be invoked, which can lead to AOT processing failures if theAotTestExecutionListenerthrows an exception -- for example, because it attempts to do something that is not supported during AOT processing.We should therefore disable
AotTestExecutionListenerprocessing for any test class annotated with@DisabledInAotMode.