From e4663d62638ef7cb24a384e6c91990a9a22b5a29 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 6 Feb 2017 14:36:33 +0100 Subject: [PATCH] added comment --- .../java/org/elasticsearch/bootstrap/JNAKernel32Library.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/elasticsearch/bootstrap/JNAKernel32Library.java b/core/src/main/java/org/elasticsearch/bootstrap/JNAKernel32Library.java index 0a81599e652..71a7fad6232 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/JNAKernel32Library.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/JNAKernel32Library.java @@ -155,6 +155,8 @@ final class JNAKernel32Library { public static class SizeT extends IntegerType { + // JNA requires this no-arg constructor to be public, + // otherwise it fails to register kernel32 library public SizeT() { this(0); }