fix(build): Fully qualify yield call to avoid java 17 compilation error#27006
Merged
tdcmeehan merged 1 commit intoprestodb:masterfrom Jan 23, 2026
Merged
fix(build): Fully qualify yield call to avoid java 17 compilation error#27006tdcmeehan merged 1 commit intoprestodb:masterfrom
tdcmeehan merged 1 commit intoprestodb:masterfrom
Conversation
Signed-off-by: kiersten-stokes <kierstenstokes@gmail.com>
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideQualifies the yield call in PageBuffer to use WorkProcessor.ProcessState.yield() explicitly to avoid Java 14+ restricted identifier compilation errors. Class diagram for updated PageBuffer yield callclassDiagram
class PageBuffer {
+WorkProcessor~Page~ pages()
}
class WorkProcessor {
<<interface>> WorkProcessor
+ProcessState~T~ ofResult(T result)
}
class ProcessState {
<<static nested>> ProcessState
+static ProcessState yield()
}
PageBuffer ..> WorkProcessor : uses
WorkProcessor *-- ProcessState : defines
%% Explicit reference showing fully-qualified call
PageBuffer ..> ProcessState : calls yield() as WorkProcessor.ProcessState.yield()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider adding a brief comment near the fully qualified
WorkProcessor.ProcessState.yield()call explaining that this is required to avoid the Java 14+ restricted identifier issue so it’s not “cleaned up” back to the unqualified form in future refactors. - It may be worth scanning the codebase for any other unqualified
yield()usages fromWorkProcessor.ProcessStateto ensure consistent handling of the Java 14+ restriction across the project.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider adding a brief comment near the fully qualified `WorkProcessor.ProcessState.yield()` call explaining that this is required to avoid the Java 14+ restricted identifier issue so it’s not “cleaned up” back to the unqualified form in future refactors.
- It may be worth scanning the codebase for any other unqualified `yield()` usages from `WorkProcessor.ProcessState` to ensure consistent handling of the Java 14+ restriction across the project.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
tdcmeehan
approved these changes
Jan 23, 2026
This was referenced Mar 31, 2026
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates
yieldcall to use fully-qualified callMotivation and Context
In java 14+, compilation will error if a restricted name is used and
yieldis a restricted in 14+.Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.