Fixes #1404 - Jetty 9.4.2 does not support constructors with varargs in XML config files.

The issue was caused by a missing @Name annotation on the "protocols" parameter.
This commit is contained in:
Simone Bordet 2017-04-21 11:06:49 +02:00
parent 63ff4af6b8
commit f28a777662
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ public abstract class AbstractHTTP2ServerConnectionFactory extends AbstractConne
this(httpConfiguration,"h2");
}
protected AbstractHTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, String... protocols)
protected AbstractHTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, @Name("protocols") String... protocols)
{
super(protocols);
for (String p:protocols)

View File

@ -54,7 +54,7 @@ public class HTTP2CServerConnectionFactory extends HTTP2ServerConnectionFactory
this(httpConfiguration,"h2c");
}
public HTTP2CServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, String... protocols)
public HTTP2CServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, @Name("protocols") String... protocols)
{
super(httpConfiguration,protocols);
for (String p:protocols)

View File

@ -53,7 +53,7 @@ public class HTTP2ServerConnectionFactory extends AbstractHTTP2ServerConnectionF
super(httpConfiguration);
}
public HTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration,String... protocols)
public HTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, @Name("protocols") String... protocols)
{
super(httpConfiguration,protocols);
}