aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/naming/CompoundName.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-05-05 08:32:19 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-05-05 08:32:19 +0000
commitaaec686eff335071bdb096039c1c3ca28fa1a266 (patch)
tree97896a7a4dcac659e97ea6dcc6832ff5e105c6be /libjava/javax/naming/CompoundName.java
parentb1210ca233ff36fd6281236f08e79ca9cddca2de (diff)
downloadgcc-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.java2
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;
}