Index: CharOperation.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java,v retrieving revision 1.22 diff -u -r1.22 CharOperation.java --- CharOperation.java 11 Mar 2003 15:03:55 -0000 1.22 +++ CharOperation.java 21 Mar 2003 17:02:55 -0000 @@ -260,7 +260,7 @@ * * @param array the given array * @param prefix the given prefix - * @return the result of the comparison + * @return the result of the comparison (>=0 if array>prefix) * @exception NullPointerException if either array or prefix is null */ public static final int compareWith(char[] array, char[] prefix) { @@ -276,7 +276,7 @@ } if (prefixLength == i) return 0; - return 1; + return -1; // array is shorter than prefix (e.g. array:'ab' < prefix:'abc'). } /**