Skip to content

Document that Spring Framework 6.x does not yet support JSpecify annotations #34551

Closed
@ghusta

Description

@ghusta

Maybe it could be nice to mention explicitly in documentation that Spring FWK 6.x doesn't support JSpecify.

When looking at : https://docs.spring.io/spring-framework/reference/6.2/core/beans/annotation-config/autowired.html

It says that

You can also use a @Nullable annotation (of any kind in any package — for example, javax.annotation.Nullable from JSR-305) or just leverage Kotlin built-in null-safety support:

But, according to the few tests I made, @org.jspecify.annotations.Nullable can't be used in Spring FWK 6 to mark a non required dependency.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions