Skip to content

[BUG] IllegalArgumentException: Invalid range (-1, n) in @Value reference provider #236

@imuromtsev

Description

@imuromtsev

Summary

IllegalArgumentException: Invalid range specified: (-1, 42); ...ValueConfigurationPropertyReferenceProvider.getReferencesForInjectionHost builds a TextRange with a negative start offset for a @Value property reference. 7 events.

Where

Sentry

Suggested direction (hypothesis)

Guard against indexOf returning -1 (placeholder/prefix not found) before constructing the TextRange; clamp or bail out when the computed start offset is negative.

Filed from Sentry (project 4 / spring-plugin), last 30 days. Auto-triaged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions