spring-projects / spring-projects/spring-boot

Adapt to native-image reflection changes

Open
#38,669 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

theme: aot type: task
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

GraalVM has some changes regarding reflection lined up:

  1. Querying methods, ctors, fields, etc. enabled by default for registered classes
  2. Throw exception if metadata is missing

Until 1. is done, we should not tackle 2, as 1. will remove a lot of places where 2. would fail.

When 1. is done, Spring Framework needs to adapt the RuntimeHints API to use the new metadata field.

For reference, Spring Framework already did some adaption related to this in https://github.com/spring-projects/spring-framework/issues/31213.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the GraalVM issues linked in the description and the existing RuntimeHints API changes referenced from Spring Framework issue 31213. Wait for GraalVM's registered-class querying change, then identify the Spring Boot integration points that depend on the current metadata field. Done means RuntimeHints is adapted without addressing missing-metadata exceptions prematurely.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.