Skip to content

add validation to flag final on @Autowired fields #1782

Closed

Description

@martinlippert

In addition to the validation that flags @Autowired fields in general (and suggest to convert it to constructor injection), the validation should also create an additional warning if the annotated field is final. Although this is possible at the moment, we strongly recommend not to do this.

In addition to that, future JDK versions will prevent this from working (making final really final), so flagging an extra warning here makes sense.

Activity

  1. added this to the 5.1.0.RELEASE milestone on Feb 11, 2026
  2. added
    for: eclipse
    for: vscode
    on Feb 11, 2026
  3. added a commit that references this issue on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: validationtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions