ruanwenjun opened a new pull request, #7869:
URL: https://github.com/apache/geode/pull/7869

   ### For all changes:
   - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in 
the commit message?
   
   - [ ] Has your PR been rebased against the latest commit within the target 
branch (typically `develop`)?
   
   - [ ] Is your initial contribution a single, squashed commit?
   
   - [ ] Does `gradlew build` run cleanly?
   
   - [ ] Have you written or updated unit tests to verify your changes?
   
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   
   When I compile with jdk11, I got an error below:
   <img width="1382" alt="image" 
src="https://user-images.githubusercontent.com/22415594/201882997-2f20030f-132d-44c7-b81e-83f0f671af09.png";>
   
   This is caused by we have two `toArray` in `PartitionedRegion`, 
   one is  
   ```
   public Object[] toArray(Object[] array)
   ```
   
   other is from `Collection` which is introduced in jdk 11. 
   ```java
   default <T> T[] toArray(IntFunction<T[]> generator) {
           return toArray(generator.apply(0));
       }
   ```
   
   This PR aims to fix this.
   
   


-- 
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: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to