Jetty9 - Fixed handling of <Configure> when it contains only <Arg> elements.
This commit is contained in:
parent
fc7001ec8c
commit
b5f7e054be
|
@ -341,7 +341,7 @@ public class XmlConfiguration
|
||||||
String id = _config.getAttribute("id");
|
String id = _config.getAttribute("id");
|
||||||
Object obj = id == null ? null : _idMap.get(id);
|
Object obj = id == null ? null : _idMap.get(id);
|
||||||
|
|
||||||
int index = 0;
|
int index = _config.size();
|
||||||
if (obj == null && oClass != null)
|
if (obj == null && oClass != null)
|
||||||
{
|
{
|
||||||
List<Object> arguments = new ArrayList<>();
|
List<Object> arguments = new ArrayList<>();
|
||||||
|
@ -437,8 +437,6 @@ public class XmlConfiguration
|
||||||
case "Property":
|
case "Property":
|
||||||
propertyObj(node);
|
propertyObj(node);
|
||||||
break;
|
break;
|
||||||
case "Arg": // Arg should have been processed for Configure already so ignore it here
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException("Unknown tag: " + tag + " in " + _url);
|
throw new IllegalStateException("Unknown tag: " + tag + " in " + _url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue