diff --git a/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java b/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java index 0471cebc38e..e69cab4a5cb 100644 --- a/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java +++ b/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java @@ -116,9 +116,9 @@ public final class NamedSPILoader implements + ((System.getSecurityManager() == null) ? "" : " We have detected that a security manager is installed so it is also possible " - + "that the services file in the jar containing the codec is inaccessible under the current " - + "security policy. A FilePermission implying 'read' access to the " - + "jar containing the META-INF/services/org.apache.lucene.codec.Codec file is necessary. " + + "that the services file in the jar containing the implementation is inaccessible under " + + "the current security policy. A FilePermission implying 'read' access to the " + + "jar containing the META-INF/services directory is necessary. " + "Note that Java does not throw SecurityException if the permission is missing.")); }