Commit 62b04fc
committed
[fix][build][branch-4.0] Fix issue in backporting PR #25644
The backport of #25644 introduced a Java record (`Table<V>`) in
`ConcurrentLongHashMap`, which fails to compile on branch-4.0 because the
`pulsar-common` module targets Java 8 source compatibility. Records require
`-source 16` or higher.
Replace the record with an equivalent static nested final class that exposes
the same `keys()`, `values()`, and `capacity()` accessors, so all existing
call sites continue to work unchanged.1 parent c229b46 commit 62b04fc
1 file changed
Lines changed: 23 additions & 1 deletion
File tree
- pulsar-common/src/main/java/org/apache/pulsar/common/util/collections
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
297 | 319 | | |
298 | 320 | | |
299 | 321 | | |
| |||
0 commit comments