ReflectionUtils can not access XXX “private final”

code:

RedisConnection redisConnection = redisConectionFactory.getConnection();
        Field jedisField = ReflectionUtils.findField(JedisConnection.class, "jedis");
        Jedis jedis = (Jedis) ReflectionUtils.getField(jedisField, redisConnection);

Reflection problems
code changes:

RedisConnection redisConnection = redisConectionFactory.getConnection();
        Field jedisField = ReflectionUtils.findField(JedisConnection.class, "jedis");
        // Use only when getting properties modified with private
        jedisField.setAccessible(true);
        Jedis jedis = (Jedis) ReflectionUtils.getField(jedisField, redisConnection);

Read More: