The GitHub Actions job "Code Style" on grails-core.git/perf/request-path-8.0.x 
has failed.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
cfc47a55fe4796245c01fb0f5a7e33dc7e5df204 / Scott Murphy Heiberg 
<[email protected]>
fix: let a data binding bean registered after a failed lookup be picked up

CachedBean remembered a miss as well as a hit: a lookup that found nothing set
bean = null and resolved = true together, so every later call short-circuited on
resolved and returned null for the life of the ApplicationContext. A bean
registered after that first attempt was never seen.

Key the check on the bean itself and drop the resolved field. A context that
does not hold the bean is no longer remembered as a miss, so the lookup is
repeated until it is found; once found it is held exactly as before. The hot
path is unchanged, and in fact reads one volatile field rather than two.

Reported by @sbglasius in review of #16149.

Claude-Session: https://claude.ai/code/session_01Pwd8dRc4WWHEPpbgrmxZmn

Report URL: https://github.com/apache/grails-core/actions/runs/33299543447

With regards,
GitHub Actions via GitBox

Reply via email to