Skip to content

Hazelcast session repository bean factory method return type is not specific enough #1905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vpavic opened this issue Aug 26, 2021 · 0 comments
Assignees
Labels
in: hazelcast status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@vpavic
Copy link
Contributor

vpavic commented Aug 26, 2021

The declared return type of Hazelcast session repository bean factory method (i.e. HazelcastHttpSessionConfiguration#sessionRepository) was changed to SessionRepository<?> when support for Hazelcast 4 was added in 0ab781e.

This breaks Spring Boot's ability to auto-configure sessions endpoint, which is @ConditionalOnBean(FindByIndexNameSessionRepository.class), as the current return type is not specific enough to satisfy this condition.

This was originally reported in spring-projects/spring-boot#27793.

@vpavic vpavic added this to the 2.6.0-RC1 milestone Aug 26, 2021
@vpavic vpavic self-assigned this Aug 26, 2021
@vpavic vpavic closed this as completed in 79fbca2 Aug 26, 2021
@vpavic vpavic added for: backport-to-2.4.x Designates an issue for backport to 2.4.x for: backport-to-2.5.x Designates an issue for backport to 2.5.x labels Aug 26, 2021
@spring-projects-issues spring-projects-issues added status: backported An issue that has been backported to maintenance branches and removed for: backport-to-2.5.x Designates an issue for backport to 2.5.x for: backport-to-2.4.x Designates an issue for backport to 2.4.x labels Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: hazelcast status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants