TNG / ArchUnit

A Java architecture test library, to specify and assert architecture rules in plain Java
http://archunit.org
Apache License 2.0
3.13k stars 284 forks source link

Jakarta Inject package name incorrect in BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION rule #1285

Closed bbadjari closed 3 months ago

bbadjari commented 3 months ago

Jakarta's Inject annotation package name used for the BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION rule in the GeneralCodingRules class is set to javax.inject.Inject when it should be jakarta.inject.Inject. See the related API documentation.

hankem commented 3 months ago

You're right: The rule had been added (#289) before Jakarta EE9 was introduced, and it was overlooked to update it to consider the jakarta package, too.