CompoundName.java (CompoundName): Don't check for separator in "flat" case.
authorTom Tromey <tromey@redhat.com>
Sun, 12 Sep 2004 23:16:38 +0000 (23:16 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 12 Sep 2004 23:16:38 +0000 (23:16 +0000)
* javax/naming/CompoundName.java (CompoundName): Don't check for
separator in "flat" case.

From-SVN: r87410

libjava/ChangeLog
libjava/javax/naming/CompoundName.java

index 84ce784d5d20b03ff716ba3b092c8280f21117e2..39a17af3b5036528ccd8b2922081396e302ff097 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-12  Tom Tromey  <tromey@redhat.com>
+
+       * javax/naming/CompoundName.java (CompoundName): Don't check for
+       separator in "flat" case.
+
 2004-09-12  Michael Koch  <konqueror@gmx.de>
 
        * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
index 4908d1bed6dd1f46fa4bc380e189c956661391fb..17f2aab7ea73b71ee222190d3b56ad5fc14dd5c8 100644 (file)
@@ -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);