Commit 3abcc195 by Tom Tromey Committed by Tom Tromey

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
parent a8252506
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> 2004-09-12 Michael Koch <konqueror@gmx.de>
* libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
......
...@@ -55,6 +55,8 @@ import java.util.Vector; ...@@ -55,6 +55,8 @@ import java.util.Vector;
* direction is never described. If it means that the CompoundName * direction is never described. If it means that the CompoundName
* can only have a single element, then the Enumeration-based * can only have a single element, then the Enumeration-based
* constructor ought to throw InvalidNameException. * constructor ought to throw InvalidNameException.
*
* @since 1.3
*/ */
public class CompoundName implements Name, Cloneable, Serializable public class CompoundName implements Name, Cloneable, Serializable
{ {
...@@ -158,7 +160,7 @@ public class CompoundName implements Name, Cloneable, Serializable ...@@ -158,7 +160,7 @@ public class CompoundName implements Name, Cloneable, Serializable
i += special.length (); i += special.length ();
continue; continue;
} }
else if (special == separator) else if (direction != FLAT && special == separator)
{ {
elts.add (new_element.toString ()); elts.add (new_element.toString ());
new_element.setLength (0); new_element.setLength (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment