Skip to content

AotTestExecutionListener should not be invoked for a @DisabledInAotMode test class #33589

@sbrannen

Description

@sbrannen

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.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test moduletheme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions