[java] Fixing coercer ability to access private constructors
@@ -162,7 +162,7 @@ public boolean test(Class aClass) {
Class target = getClss(type);
try {
- @SuppressWarnings("unchecked") Constructor<?> constructor = target.getConstructor();
+ @SuppressWarnings("unchecked") Constructor<?> constructor = target.getDeclaredConstructor();
constructor.setAccessible(true);
return constructor;
} catch (ReflectiveOperationException e) {
