diff options
author | Tom Tromey <tromey@redhat.com> | 2004-09-12 23:16:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2004-09-12 23:16:57 +0000 |
commit | 62a64372b984c645053c75b02df93a472eee5994 (patch) | |
tree | 5eaa6c099226a9e20c93cf306e152523f0593100 /javax/naming | |
parent | a5eb9c138e231cc0fa328ab388ef29b8f91b279d (diff) | |
download | classpath-62a64372b984c645053c75b02df93a472eee5994.tar.gz |
* javax/naming/CompoundName.java (CompoundName): Don't check for
separator in "flat" case.
Diffstat (limited to 'javax/naming')
-rw-r--r-- | javax/naming/CompoundName.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/javax/naming/CompoundName.java b/javax/naming/CompoundName.java index 4908d1bed..17f2aab7e 100644 --- a/javax/naming/CompoundName.java +++ b/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); |