|
@@ -14,6 +14,7 @@ import org.apache.logging.log4j.core.LoggerContext;
|
|
|
import org.apache.logging.log4j.core.config.Configurator;
|
|
|
import org.apache.lucene.util.Constants;
|
|
|
import org.apache.lucene.util.StringHelper;
|
|
|
+import org.apache.lucene.util.VectorUtil;
|
|
|
import org.elasticsearch.ElasticsearchException;
|
|
|
import org.elasticsearch.Version;
|
|
|
import org.elasticsearch.action.support.SubscribableListener;
|
|
@@ -186,7 +187,9 @@ class Elasticsearch {
|
|
|
ReferenceDocs.class,
|
|
|
// The following classes use MethodHandles.lookup during initialization, load them now (before SM) to be sure they succeed
|
|
|
AbstractRefCounted.class,
|
|
|
- SubscribableListener.class
|
|
|
+ SubscribableListener.class,
|
|
|
+ // We eagerly initialize to work around log4j permissions & JDK-8309727
|
|
|
+ VectorUtil.class
|
|
|
);
|
|
|
|
|
|
// install SM after natives, shutdown hooks, etc.
|