summaryrefslogtreecommitdiff
path: root/libjava/javax
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-05 08:32:19 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-05 08:32:19 +0000
commit08dba3cc4c566cd254406bf5a6549517a839f141 (patch)
tree97896a7a4dcac659e97ea6dcc6832ff5e105c6be /libjava/javax
parenta27c044bd64b1995547ea0b48b542e229cf3b5aa (diff)
downloadgcc-08dba3cc4c566cd254406bf5a6549517a839f141.tar.gz
2004-05-05 Tom Tromey <tromey@redhat.com>
* javax/naming/CompoundName.java (endsWith): Look at correct element of source name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81513 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax')
-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 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;
}