diff options
author | Tom Tromey <tromey@redhat.com> | 2004-05-05 08:32:19 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-05-05 08:32:19 +0000 |
commit | aaec686eff335071bdb096039c1c3ca28fa1a266 (patch) | |
tree | 97896a7a4dcac659e97ea6dcc6832ff5e105c6be /libjava/javax/naming/CompoundName.java | |
parent | b1210ca233ff36fd6281236f08e79ca9cddca2de (diff) | |
download | gcc-aaec686eff335071bdb096039c1c3ca28fa1a266.zip gcc-aaec686eff335071bdb096039c1c3ca28fa1a266.tar.gz gcc-aaec686eff335071bdb096039c1c3ca28fa1a266.tar.bz2 |
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
Diffstat (limited to 'libjava/javax/naming/CompoundName.java')
-rw-r--r-- | libjava/javax/naming/CompoundName.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/javax/naming/CompoundName.java b/libjava/javax/naming/CompoundName.java index 87d26fe..4908d1be 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; } |