aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/common/cli
diff options
context:
space:
mode:
authorJ08nY2017-11-26 19:19:40 +0100
committerJ08nY2017-11-26 19:20:02 +0100
commit2279aef8b7c00ba2bb71fdedae77ae4a47b00fc6 (patch)
tree170d89e814f7b8110f15564ca22c16f6b1070603 /src/cz/crcs/ectester/common/cli
parent942c287dc46227c87e8683a389d01006e23cb52a (diff)
downloadECTester-2279aef8b7c00ba2bb71fdedae77ae4a47b00fc6.tar.gz
ECTester-2279aef8b7c00ba2bb71fdedae77ae4a47b00fc6.tar.zst
ECTester-2279aef8b7c00ba2bb71fdedae77ae4a47b00fc6.zip
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.
Diffstat (limited to 'src/cz/crcs/ectester/common/cli')
-rw-r--r--src/cz/crcs/ectester/common/cli/TreeCommandLine.java2
1 files changed, 1 insertions, 1 deletions
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]);
}