Skip to content

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

Open

Description

@martinlippert

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.

Activity

  1. added this to the 5.5.0.RELEASE milestone on Aug 21, 2026
  2. added
    for: eclipse
    for: vscode
    on Aug 21, 2026
  3. dhanush080607 commented on Oct 16, 2026

    @dhanush080607

    Hi @martinlippert , I'm interested in contributing to Spring Tools and came across this issue. I noticed it's assigned to you. Is there a smaller, independent part of the validation or dependency-tracking work that would be suitable for an external contribution?

  4. martinlippert commented on Oct 16, 2026

    @martinlippert
    MemberAuthor

    @dhanush080607 It depends a bit on what exactly you are interested in and what your overall experience using Spring and Spring Boot is. If you want to give a specific validation a try, this report might be interesting: #1193 - but it would require building some understanding about @Transactional and similar annotations in Spring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: agentfor: eclipsefor: vscodetype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions