Browse Source

Fix RequestUpgradeStrategy impl. class loading

Issue: SPR-15106
pull/1287/head
Brian Clozel 9 years ago
parent
commit
87f498195c
  1. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/server/support/HandshakeWebSocketService.java

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/server/support/HandshakeWebSocketService.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -123,7 +123,7 @@ public class HandshakeWebSocketService implements WebSocketService, Lifecycle { @@ -123,7 +123,7 @@ public class HandshakeWebSocketService implements WebSocketService, Lifecycle {
}
try {
className = HandshakeWebSocketService.class.getPackage().getName() + "." + className;
className = "org.springframework.web.reactive.socket.server.upgrade." + className;
Class<?> clazz = ClassUtils.forName(className, HandshakeWebSocketService.class.getClassLoader());
return (RequestUpgradeStrategy) ReflectionUtils.accessibleConstructor(clazz).newInstance();
}

Loading…
Cancel
Save