spring-projects / spring-projects/spring-tools

deleting a web config class doesn't re-trigger validation of controllers

Open
#1,971 0 comments 0 reactions 1 assignee View on GitHub

@martinlippert is already working on this.

Since Aug 21, 2026.

for: claude for: eclipse for: vscode type: bug
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

There is a validation that checks version attributes on controller request mappings to see if there is a web config around that configures the API versioning (or alternatively config properties). If there is no API versioning configuration found, a problem marker is added to the version validation.

However, when there is a web config in place that gets deleted (the whole file), the validation doesn't re-validate the controller classes in order to add that problem marker.

This is probably an overall missing piece in the validation <-> dependency tracking mechanism and should be investigated to avoid stale diagnostics from showing up.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.