Skip to content

GH-5435: Add MongoDB runtime hints#5441

Open
DragonFSKY wants to merge 1 commit into
spring-projects:mainfrom
DragonFSKY:GH-5435
Open

GH-5435: Add MongoDB runtime hints#5441
DragonFSKY wants to merge 1 commit into
spring-projects:mainfrom
DragonFSKY:GH-5435

Conversation

@DragonFSKY

Copy link
Copy Markdown

Closes #5435.

This PR adds the MongoDB runtime hints reported in GH-5435.

It registers schema-mongodb.{jsonl,js} and schema-drop-mongodb.{jsonl,js} as core resources, and adds reflection hints for the MongoDB persistence model classes listed in the issue.

The regression test verifies that the MongoDB schema resources are available on the classpath and that the corresponding runtime hints are registered.

Tests:

  • ./mvnw -pl spring-batch-core -Dtest=CoreRuntimeHintsTests test
  • git diff --check

Note: I verified the runtime hints registration with the focused test above, but I have not run a full native-image reproducer locally.

Signed-off-by: Dongliang Xie <dragonfsky@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing GraalVM runtime hints for MongoDB persistence model classes and resources

1 participant