Polish
Constructor.getParameterCount is JDK8+ only!
This commit is contained in:
@@ -216,7 +216,7 @@ public abstract class AbstractTyrusRequestUpgradeStrategy extends AbstractStanda
|
||||
Object sessionListener = accessor.getPropertyValue("sessionListener");
|
||||
Object clusterContext = accessor.getPropertyValue("clusterContext");
|
||||
try {
|
||||
if (constructor.getParameterCount() == 9) {
|
||||
if (constructor.getParameterTypes().length == 9) {
|
||||
return constructor.newInstance(registration.getEndpoint(), registration, provider, container,
|
||||
"/", registration.getConfigurator(), sessionListener, clusterContext, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user