diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-05 08:32:19 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-05 08:32:19 +0000 |
commit | 08dba3cc4c566cd254406bf5a6549517a839f141 (patch) | |
tree | 97896a7a4dcac659e97ea6dcc6832ff5e105c6be /libjava/javax | |
parent | a27c044bd64b1995547ea0b48b542e229cf3b5aa (diff) | |
download | gcc-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.java | 2 |
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; } |