Skip to content

fix(mongodb): widen MongoMappingContext.initialize visibility to public#15778

Open
borinquenkid wants to merge 1 commit into
8.0.xfrom
fix/mongo-mapping-context-initialize-visibility
Open

fix(mongodb): widen MongoMappingContext.initialize visibility to public#15778
borinquenkid wants to merge 1 commit into
8.0.xfrom
fix/mongo-mapping-context-initialize-visibility

Conversation

@borinquenkid

Copy link
Copy Markdown
Member

Description

Contributor Checklist

Please review the following checklist before submitting your pull request. Pull requests that do not meet these requirements may be closed without review.

Issue and Scope

  • This PR is linked to an existing issue that has been acknowledged or approved by the project team. If no approved issue exists, please give background on why this change is necessary. Tickets are preferred for release change log history.
  • This PR addresses the complete scope of the linked issue. Partial implementations or unfinished work should not be submitted for review.
  • [ x] This PR contains a single, focused change. Unrelated changes should be submitted as separate pull requests.
  • This PR targets the correct branch for the type of change:
    • Patch release branches (e.g., 7.0.x): Bug fixes only. No new features or API changes.
    • Minor release branches (e.g., 7.1.x): New features are welcome, but breaking existing APIs must be avoided.
    • Major release branches (e.g., 8.0.x): Reserved for major changes. Breaking API changes are permitted.

Code Quality

  • [ x] I have added or updated tests that cover the changes introduced in this PR. All code contributions are expected to include appropriate test coverage.
  • [ x] I have verified that all existing tests pass by running ./gradlew build --rerun-tasks.
  • [x ] My code follows the project's code style guidelines. I have run ./gradlew codeStyle and resolved any violations. See Code Style for details.
  • [ x] This PR does not include mass reformatting, style-only changes, or large-scale refactoring unless it was explicitly approved in the linked issue. Unsolicited reformatting will not be accepted.
  • [ x] If generative AI tooling was used in preparing this contribution, a quality model was used to ensure contributions are consistent with the project's quality standards.

Licensing and Attribution

  • [x ] All contributed code is provided under the Apache License 2.0, and new source files include the appropriate Apache license header.
  • [ x] I have the necessary rights to submit this contribution and confirm it is my own original work (see Legal Notice).
  • [x ] If generative AI tooling was used in preparing this contribution, I have followed the Apache Software Foundation's policy on generative tooling and have properly attributed its use.

Documentation

  • If this PR introduces user-facing changes, I have included or updated the relevant documentation.
  • If this PR adds a new feature, I have updated the What's New section of the Grails Guide.
  • If this PR introduces breaking changes or changes that require user action during an upgrade, I have updated the Upgrade Notes for the corresponding version in the Grails Guide.
  • The PR description clearly explains what was changed and why.

First-time contributors: Please read our Contributing Guide before submitting.
Pull requests that appear to be auto-generated, incomplete, or unrelated to an approved issue may be
closed to help maintainers focus on reviewed and planned work. We appreciate your understanding.

The MappingContext interface declares initialize(ConnectionSourceSettings)
as public. MongoMappingContext narrowed it to protected, which is a Java
contract violation and causes a compilation error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@testlens-app

testlens-app Bot commented Jun 27, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: a6dc598
▶️ Tests: 47038 executed
⚪️ Checks: 44/44 completed


Learn more about TestLens at testlens.app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant