diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-12 23:16:38 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-12 23:16:38 +0000 |
commit | bf49bf7e85e27ad8e2f4d1d8555db6161f4fce05 (patch) | |
tree | f8ab820fc8c7b7499916f358c8b4f852bd123157 /libjava/javax | |
parent | 370b291b0e69f513d6cbda51a38429525b642bf4 (diff) | |
download | gcc-bf49bf7e85e27ad8e2f4d1d8555db6161f4fce05.tar.gz |
* javax/naming/CompoundName.java (CompoundName): Don't check for
separator in "flat" case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87410 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax')
-rw-r--r-- | libjava/javax/naming/CompoundName.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/javax/naming/CompoundName.java b/libjava/javax/naming/CompoundName.java index 4908d1bed6d..17f2aab7ea7 100644 --- a/libjava/javax/naming/CompoundName.java +++ b/libjava/javax/naming/CompoundName.java @@ -55,6 +55,8 @@ import java.util.Vector; * direction is never described. If it means that the CompoundName * can only have a single element, then the Enumeration-based * constructor ought to throw InvalidNameException. + * + * @since 1.3 */ public class CompoundName implements Name, Cloneable, Serializable { @@ -158,7 +160,7 @@ public class CompoundName implements Name, Cloneable, Serializable i += special.length (); continue; } - else if (special == separator) + else if (direction != FLAT && special == separator) { elts.add (new_element.toString ()); new_element.setLength (0); |