nicoloboschi opened a new pull request #14128:
URL: https://github.com/apache/pulsar/pull/14128


   ### Motivation
   This test tries to directly access to the `modifiers` field which has been 
removed since JDK12.
   ```
   java.lang.NoSuchFieldException: modifiers
        at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
        at 
org.apache.pulsar.client.api.SimpleProducerConsumerTest.testActiveAndInActiveConsumerEntryCacheBehavior(SimpleProducerConsumerTest.java:983)
   ```
   
   We can replace it with PowerMockito `Whitebox` class.
   
   ### Modifications
   
   * Replaced the reflection usage with Powermockito `Whitebox`
   
   ### Documentation
   
   - [x] `no-need-doc` 
   


-- 
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