Commit a4f18f6
AXIS2-5904 Fix version capture ordering and remove dead Date fields
Gemini review found a subtle race: getMaxPolicyVersion() was called
AFTER calculateEffectivePolicy(), so a concurrent policy update
between the two calls would stamp the cache with a newer version
than the policy it contains, causing subsequent calls to miss the
update. Fix: capture version BEFORE computing the policy.
Also remove dead lastPolicyCalculatedTime fields and unused Date
imports from both AxisBindingMessage and AxisMessage — all cache
invalidation now uses the version counter exclusively.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 18fd259 commit a4f18f6
2 files changed
Lines changed: 4 additions & 8 deletions
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
| 222 | + | |
224 | 223 | | |
225 | | - | |
226 | | - | |
| 224 | + | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| 242 | + | |
244 | 243 | | |
245 | | - | |
246 | | - | |
| 244 | + | |
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
| |||
0 commit comments