• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / #5620
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 13 Jul 2026 12:04AM UTC
Jobs 1
Files 78
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jul 2026 11:50PM UTC coverage: 99.988%. Remained the same
#5620

push

github

ben-manes
Keep jcache reload expiry unchanged on null/throwing update policy

JCacheLoaderAdapter.expireTimeMillis called duration.isZero() without a
null guard, so a getExpiryForUpdate() of null (the CreatedExpiryPolicy /
AccessedExpiryPolicy / default EternalExpiryPolicy behavior) NPE'd into
the catch and returned MAX_VALUE, making a refreshed finite-expiry entry
eternal (plus a WARNING per refresh).

The helper now takes a boolean created, mirroring
CacheProxy.getWriteExpireTimeMillis: a null or throwing update returns
the MIN_VALUE "unchanged" sentinel that reload remaps to the prior
expiry; creation keeps null/throw as eternal so the loaded entry is not
lost. reload is an update (it receives oldValue), so this matches the
put/replace update paths, which also leave a null or throwing update
expiry unchanged; only the insert path is eternal-on-throw.

4141 of 4152 branches covered (99.74%)

10 of 10 new or added lines in 1 file covered. (100.0%)

8416 of 8417 relevant lines covered (99.99%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5620.1 13 Jul 2026 12:04AM UTC 78
99.99
Source Files on build #5620
  • Tree
  • List 78
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b467b215 on github
  • Prev Build on v3.dev
  • Next Build on v3.dev
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc