Skip to content

breaking change for @Lock on String methods #2023

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
wants to merge 1 commit into from

Conversation

mipo256
Copy link
Contributor

@mipo256 mipo256 commented Apr 1, 2025

This PR completes the discussion here, but is a breaking change anyway, so I decided to clean up some APIs that were for removal anywhay.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 1, 2025
@mp911de mp911de requested a review from Copilot April 8, 2025 11:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.java:149

  • Replacing a warning with an exception for unsupported @lock usage is a breaking change. Ensure that clients invoking this API update to handle this exception and consider adding tests or documentation to clarify the new behavior.
throw new UnsupportedOperationException(LOCKING_IS_NOT_SUPPORTED + queryMethod);

@mp911de
Copy link
Member

mp911de commented Apr 8, 2025

Don't be scared, I requested out of interest a review from GitHub's copilot to see what happens. I never tried that so treat it as experiment.

@mp911de mp911de force-pushed the main branch 2 times, most recently from 571fd96 to 1f2e694 Compare April 9, 2025 13:29
schauder added a commit that referenced this pull request Apr 10, 2025
Formatting.
Added a test.

Original pull request #2023
See #2008
@schauder
Copy link
Contributor

schauder commented Apr 10, 2025

Thanks. That's merged in 4.0.x

@schauder schauder closed this Apr 10, 2025
@schauder schauder added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 10, 2025
@schauder schauder added this to the 4.0 M2 (2025.1.0) milestone Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants