diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-01-31 14:12:50 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-01-31 14:12:50 +0000 |
commit | 9f1a650d4ef5adb2f85cc079607e3482ddea738b (patch) | |
tree | 6c8d52f6a0c2b8fb7eb14ca6ac2f6196fb49b2dc /java/src | |
parent | Added test for IceUtil::Options::split (diff) | |
download | ice-9f1a650d4ef5adb2f85cc079607e3482ddea738b.tar.bz2 ice-9f1a650d4ef5adb2f85cc079607e3482ddea738b.tar.xz ice-9f1a650d4ef5adb2f85cc079607e3482ddea738b.zip |
Fixed minor bugs in IceUtil.Options.split() and added inputUtil tests.
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/IceUtil/Options.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/IceUtil/Options.java b/java/src/IceUtil/Options.java index 7db0c20ed8d..65184b68592 100644 --- a/java/src/IceUtil/Options.java +++ b/java/src/IceUtil/Options.java @@ -30,6 +30,10 @@ public final class Options final int ANSIQuoteState = 4; line = line.trim(); + if(line.length() == 0) + { + return new String[0]; + } int state = NormalState; @@ -381,6 +385,10 @@ public final class Options { throw new BadQuote("missing closing double quote"); } + case ANSIQuoteState: + { + throw new BadQuote("unterminated $' quote"); + } default: { assert(false); |