CompoundName.java (endsWith): Look at correct element of source name.

2004-05-05  Tom Tromey  <tromey@redhat.com>

	* javax/naming/CompoundName.java (endsWith): Look at correct
	element of source name.

From-SVN: r81513
This commit is contained in:
Tom Tromey 2004-05-05 08:32:19 +00:00 committed by Michael Koch
parent b1210ca233
commit aaec686eff
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-05 Tom Tromey <tromey@redhat.com>
* javax/naming/CompoundName.java (endsWith): Look at correct
element of source name.
2004-05-05 Mark Wielaard <mark@klomp.org>
Reported by f.haeglsperger@gmx.de [classpath patch #2485]

View File

@ -264,7 +264,7 @@ public class CompoundName implements Name, Cloneable, Serializable
int delta = elts.size () - cn.elts.size ();
for (int i = 0; i < cn.elts.size (); ++i)
{
String f = canonicalize ((String) elts.get (i));
String f = canonicalize ((String) elts.get (delta + i));
if (! f.equals (canonicalize ((String) cn.elts.get (i))))
return false;
}