qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject qpid-broker-j git commit: QPID-8264: [Broker-J] Fix ClassCastException reported on creation and update of VirtualHostUserOrConnectionLogInclusionRule
Date Fri, 07 Dec 2018 11:40:34 GMT
Repository: qpid-broker-j
Updated Branches:
  refs/heads/7.0.x 6ba7c4962 -> 30bb0140a


QPID-8264: [Broker-J] Fix ClassCastException reported on creation and update of VirtualHostUserOrConnectionLogInclusionRule


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/30bb0140
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/30bb0140
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/30bb0140

Branch: refs/heads/7.0.x
Commit: 30bb0140a2763d31b4237152ad3b1cb8e756cf90
Parents: 6ba7c49
Author: Alex Rudyy <orudyy@apache.org>
Authored: Fri Dec 7 11:36:47 2018 +0000
Committer: Alex Rudyy <orudyy@apache.org>
Committed: Fri Dec 7 11:39:14 2018 +0000

----------------------------------------------------------------------
 .../VirtualHostUserOrConnectionLogInclusionRuleImpl.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/30bb0140/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostUserOrConnectionLogInclusionRuleImpl.java
----------------------------------------------------------------------
diff --git a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostUserOrConnectionLogInclusionRuleImpl.java
b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostUserOrConnectionLogInclusionRuleImpl.java
index 60db2ff..745b52e 100644
--- a/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostUserOrConnectionLogInclusionRuleImpl.java
+++ b/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/VirtualHostUserOrConnectionLogInclusionRuleImpl.java
@@ -24,10 +24,10 @@ import java.util.Map;
 import java.util.Set;
 
 import org.apache.qpid.server.configuration.IllegalConfigurationException;
-import org.apache.qpid.server.model.BrokerLogger;
 import org.apache.qpid.server.model.ConfiguredObject;
 import org.apache.qpid.server.model.ManagedAttributeField;
 import org.apache.qpid.server.model.ManagedObjectFactoryConstructor;
+import org.apache.qpid.server.model.VirtualHostLogger;
 
 class VirtualHostUserOrConnectionLogInclusionRuleImpl
         extends AbstractPredicateLogInclusionRule<VirtualHostUserOrConnectionLogInclusionRuleImpl>
@@ -45,7 +45,7 @@ class VirtualHostUserOrConnectionLogInclusionRuleImpl
 
     @ManagedObjectFactoryConstructor
     protected VirtualHostUserOrConnectionLogInclusionRuleImpl(final Map<String, Object>
attributes,
-                                                              BrokerLogger<?> logger)
+                                                              final VirtualHostLogger<?>
logger)
     {
         super(logger, attributes);
     }
@@ -54,8 +54,8 @@ class VirtualHostUserOrConnectionLogInclusionRuleImpl
     protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String>
changedAttributes)
     {
         super.validateChange(proxyForValidation, changedAttributes);
-        BrokerUserOrConnectionLogInclusionRule proxy =
-                (BrokerUserOrConnectionLogInclusionRule) proxyForValidation;
+        VirtualHostUserOrConnectionLogInclusionRule proxy =
+                (VirtualHostUserOrConnectionLogInclusionRule) proxyForValidation;
         if (changedAttributes.contains(LOGGER_NAME) &&
             ((getLoggerName() != null && !getLoggerName().equals(proxy.getLoggerName()))
||
              (getLoggerName() == null && proxy.getLoggerName() != null)))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message