From 2279aef8b7c00ba2bb71fdedae77ae4a47b00fc6 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 26 Nov 2017 19:19:40 +0100 Subject: Make sure the SPI by the intended provider is always used. - JCA implements failover in its Delegates(classes between a Service and its SPI), which catches RuntimeExceptions and changes to another SPI by possibly another provider, we do not want this to happen. There is no public API for disabling this, however calling .getProvider() on a Service fixates the provider to the returned one. --- src/cz/crcs/ectester/common/cli/TreeCommandLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cz/crcs/ectester/common/cli/TreeCommandLine.java') diff --git a/src/cz/crcs/ectester/common/cli/TreeCommandLine.java b/src/cz/crcs/ectester/common/cli/TreeCommandLine.java index 7de6ef1..6a044d2 100644 --- a/src/cz/crcs/ectester/common/cli/TreeCommandLine.java +++ b/src/cz/crcs/ectester/common/cli/TreeCommandLine.java @@ -89,7 +89,7 @@ public class TreeCommandLine extends CommandLine { @Override public Object getParsedOptionValue(String opt) throws ParseException { if (opt.contains(".")) { - String[] parts = opt.split(".", 2); + String[] parts = opt.split("\\.", 2); if (next != null && parts[0].equals(next.getName())) { return next.getParsedOptionValue(parts[1]); } -- cgit v1.2.3-70-g09d2