Commit 094731f
committed
fix: resolve JCache createCache via Configuration interface, not MutableConfiguration
Class.getMethod requires exact parameter types and does not match supertypes.
JSR-107 declares CacheManager#createCache(String, Configuration<K,V>), so the
reflective lookup using MutableConfiguration always threw NoSuchMethodException
when initializing JCacheAdapterReflective, forcing every JCache cache to fall
back to Caffeine and flooding logs with errors at startup.
Resolve the Configuration class via reflection in the appropriate namespace
(javax or jakarta) and use it for the createCache method lookup.
MutableConfiguration is still used to instantiate the configuration object
since it is the concrete class created at runtime.1 parent 8bb30ed commit 094731f
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
0 commit comments