From ccdd7f6453f9fd64ece9de11110ff60953b88a32 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 15 Oct 2016 15:01:52 +0300 Subject: [PATCH] JDK 6 compilation fixed --- .../src/main/java/org/redisson/RedissonLiveObjectService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisson/src/main/java/org/redisson/RedissonLiveObjectService.java b/redisson/src/main/java/org/redisson/RedissonLiveObjectService.java index c6e129b05..250e77003 100644 --- a/redisson/src/main/java/org/redisson/RedissonLiveObjectService.java +++ b/redisson/src/main/java/org/redisson/RedissonLiveObjectService.java @@ -588,7 +588,7 @@ public class RedissonLiveObjectService implements RLiveObjectService { private T instantiate(Class cls, K id) throws Exception { for (Constructor constructor : cls.getDeclaredConstructors()) { - if (constructor.getParameterCount() == 0) { + if (constructor.getParameterTypes().length == 0) { constructor.setAccessible(true); return (T) constructor.newInstance(); }