aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-09-12 23:16:38 +0000
committerTom Tromey <tromey@gcc.gnu.org>2004-09-12 23:16:38 +0000
commit3abcc195e419c0697bf9854eae8c2a2986626c44 (patch)
treef8ab820fc8c7b7499916f358c8b4f852bd123157 /libjava/javax
parenta82525061721b26293ea4c55bf35efac295b6d0a (diff)
downloadgcc-3abcc195e419c0697bf9854eae8c2a2986626c44.zip
gcc-3abcc195e419c0697bf9854eae8c2a2986626c44.tar.gz
gcc-3abcc195e419c0697bf9854eae8c2a2986626c44.tar.bz2
CompoundName.java (CompoundName): Don't check for separator in "flat" case.
* javax/naming/CompoundName.java (CompoundName): Don't check for separator in "flat" case. From-SVN: r87410
Diffstat (limited to 'libjava/javax')
-rw-r--r--libjava/javax/naming/CompoundName.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/javax/naming/CompoundName.java b/libjava/javax/naming/CompoundName.java
index 4908d1be..17f2aab 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);