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:
parent
63ff4af6b8
commit
f28a777662
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue