Fix RequestUpgradeStrategy impl. class loading

Issue: SPR-15106
This commit is contained in:
Brian Clozel 2017-01-06 23:12:31 +01:00
parent afd93a0b52
commit 87f498195c
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
}
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();
}