From aaec686eff335071bdb096039c1c3ca28fa1a266 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 5 May 2004 08:32:19 +0000 Subject: [PATCH] CompoundName.java (endsWith): Look at correct element of source name. 2004-05-05 Tom Tromey * javax/naming/CompoundName.java (endsWith): Look at correct element of source name. From-SVN: r81513 --- libjava/ChangeLog | 5 +++++ libjava/javax/naming/CompoundName.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index cdb04d0535c..a2187f11c68 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-05-05 Tom Tromey + + * javax/naming/CompoundName.java (endsWith): Look at correct + element of source name. + 2004-05-05 Mark Wielaard Reported by f.haeglsperger@gmx.de [classpath patch #2485] diff --git a/libjava/javax/naming/CompoundName.java b/libjava/javax/naming/CompoundName.java index 87d26feb43b..4908d1bed6d 100644 --- a/libjava/javax/naming/CompoundName.java +++ b/libjava/javax/naming/CompoundName.java @@ -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; }