commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch: FYI: naming fixlet


From: Tom Tromey
Subject: Patch: FYI: naming fixlet
Date: 23 Apr 2004 13:21:00 -0600

This fixes a buglet in javax.naming found by Eclipse.

Tom

2004-04-23  Tom Tromey  <address@hidden>

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

Index: javax/naming/CompoundName.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/naming/CompoundName.java,v
retrieving revision 1.5
diff -u -r1.5 CompoundName.java
--- javax/naming/CompoundName.java      19 Apr 2004 14:45:05 -0000      1.5
+++ javax/naming/CompoundName.java      23 Apr 2004 19:09:31 -0000
@@ -264,7 +264,7 @@
     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;
       }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]