eolivelli opened a new pull request, #4778:
URL: https://github.com/apache/bookkeeper/pull/4778

   Fixes #4777
   
   ## Summary
   
   `branch-4.17` targets Java 8 but #4771 introduced a Java `record` 
declaration in `ConcurrentLongHashMap.Section`, which requires Java 16+. This 
broke the build with:
   
   ```
   ConcurrentLongHashMap.java:[320,29] ';' expected
   ConcurrentLongHashMap.java:[320,32] illegal start of type
   ```
   
   This change replaces the record with an equivalent `static final` nested 
class that exposes `keys()`, `values()` and `capacity()` accessors, leaving the 
existing call sites unchanged.
   
   `master` is not affected because it already targets Java 17.
   
   ## Test plan
   
   - [x] `mvn -pl bookkeeper-server -am compile -DskipTests` succeeds locally 
on `branch-4.17`.
   - [ ] CI green on this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to