Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added class check to MethodMessageHandlerInspector

This is to make sure old instances are ignored after classloader change.

Issue #AXON-246 Fixed
  • Loading branch information...
commit d7b1fbcc4a5469d4c818b3868dc7fefae84226ec 1 parent 448f212
@abuijze abuijze authored
View
4 core/src/main/java/org/axonframework/common/annotation/MethodMessageHandlerInspector.java
@@ -92,7 +92,9 @@ public static MethodMessageHandlerInspector getInstance(Class<?> handlerClass,
HandlerDefinition<? super Method> handlerDefinition) {
String key = handlerDefinition.toString() + "@" + handlerClass.getName();
MethodMessageHandlerInspector inspector = INSPECTORS.get(key);
- while (inspector == null || !inspector.parameterResolver.equals(parameterResolverFactory)) {
+ while (inspector == null
+ || !handlerClass.equals(inspector.getTargetType())
+ || !inspector.parameterResolver.equals(parameterResolverFactory)) {
final MethodMessageHandlerInspector newInspector = new MethodMessageHandlerInspector(
parameterResolverFactory,
handlerClass,
Please sign in to comment.
Something went wrong with that request. Please try again.