Skip to content

No classes found when using Java 26 #1606

@windmueller

Description

@windmueller

When running my tests with Java 26, I get this error:

Rule 'fields that are declared in classes that [...]' failed to check any classes.
This means either that no classes have been passed to the rule at all, or that
no classes passed to the rule matched the `that()` clause. To allow rules being
evaluated without checking any classes you can either use
`ArchRule.allowEmptyShould(true)` on a single rule or set the configuration
property `archRule.failOnEmptyShould = false` to change the behavior globally.

I am aware of #1599 and verified that ASM 9.9.1 is present on the classpath.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions