Repository: logging-log4j2
Updated Branches:
  refs/heads/release-2.x 4f23d5cff -> c59170b52


Revert "[LOG4J2-2327] java.util.ServiceConfigurationError: 
org.apache.logging.log4j.util.PropertySource: Provider 
org.apache.logging.log4j.util.EnvironmentPropertySource not a subtype."

This reverts commit 4f23d5cff3874f1c2771c34eeef31bd8ab3e5968.


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/c59170b5
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c59170b5
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c59170b5

Branch: refs/heads/release-2.x
Commit: c59170b527f59304dfcbf1d5fca5ea19b88776de
Parents: 4f23d5c
Author: Gary Gregory <ggreg...@apache.org>
Authored: Thu Apr 26 14:39:55 2018 -0400
Committer: Gary Gregory <ggreg...@apache.org>
Committed: Thu Apr 26 14:39:55 2018 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/util/PropertiesUtil.java   | 3 +--
 src/changes/changes.xml                                           | 3 ---
 2 files changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c59170b5/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
----------------------------------------------------------------------
diff --git 
a/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java 
b/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
index c732b01..f5e1ecb 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
@@ -316,8 +316,7 @@ public final class PropertiesUtil {
 
         private Environment(final PropertySource propertySource) {
             sources.add(propertySource);
-            Class<PropertySource> serviceClass = PropertySource.class;
-            for (final PropertySource source : 
ServiceLoader.load(serviceClass, serviceClass.getClassLoader())) {
+            for (final PropertySource source : 
ServiceLoader.load(PropertySource.class)) {
                 sources.add(source);
             }
             reload();

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c59170b5/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 32a7662..663cea9 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -81,9 +81,6 @@
         MutableLogEvent references to other objects are cleared after each use.
         Fix a memory leak causing references to parameters to be held after 
synchronous logging with thread locals enabled.
       </action>
-      <action issue="LOG4J2-2327" dev="ggregory" type="fix" due-to="leor 
amikam">
-        java.util.ServiceConfigurationError: 
org.apache.logging.log4j.util.PropertySource: Provider 
org.apache.logging.log4j.util.EnvironmentPropertySource not a subtype.
-      </action>
     </release>
     <release version="2.11.0" date="2018-03-11" description="GA Release 
2.11.0">
       <action issue="LOG4J2-2104" dev="rgoers" type="fix">

Reply via email to