]> gcc.gnu.org Git - gcc.git/commitdiff
CompoundName.java (endsWith): Look at correct element of source name.
authorTom Tromey <tromey@redhat.com>
Wed, 5 May 2004 08:32:19 +0000 (08:32 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 5 May 2004 08:32:19 +0000 (08:32 +0000)
2004-05-05  Tom Tromey  <tromey@redhat.com>

* javax/naming/CompoundName.java (endsWith): Look at correct
element of source name.

From-SVN: r81513

libjava/ChangeLog
libjava/javax/naming/CompoundName.java

index cdb04d0535c952de451a377ae1b595c85d608441..a2187f11c689af5f8181935b0013eb6c40e94200 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-05  Tom Tromey  <tromey@redhat.com>
+
+       * javax/naming/CompoundName.java (endsWith): Look at correct
+       element of source name.
+
 2004-05-05  Mark Wielaard  <mark@klomp.org>
 
        Reported by f.haeglsperger@gmx.de [classpath patch #2485]
index 87d26feb43b007ec5c8dd093206bc1b6d151177e..4908d1bed6dd1f46fa4bc380e189c956661391fb 100644 (file)
@@ -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;
       }
This page took 0.074396 seconds and 5 git commands to generate.