I have started working on limewire. This patch fixes the exceptions that
were thrown at startup.

2006-06-07  Lillian Angel  <[EMAIL PROTECTED]>

        * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
        (FreetypeGlyphVector): Removed assignment. Caused compilation 
        error.
        * java/lang/String.java
        (codePointCount): Fixed check to match API. Shouldn't throw 
        exception if end == count. end is 1 more than the endIndex, so 
        end == count is possible.

Index: gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,v
retrieving revision 1.1
diff -u -r1.1 FreetypeGlyphVector.java
--- gnu/java/awt/peer/gtk/FreetypeGlyphVector.java	7 Jun 2006 13:54:32 -0000	1.1
+++ gnu/java/awt/peer/gtk/FreetypeGlyphVector.java	7 Jun 2006 15:20:00 -0000
@@ -102,7 +102,6 @@
    */
   public FreetypeGlyphVector(Font f, int[] codes, FontRenderContext frc)
   {
-    this.s = s;
     this.font = f;
     this.frc = frc;
     if( !(font.getPeer() instanceof GdkFontPeer ) )
Index: java/lang/String.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/String.java,v
retrieving revision 1.81
diff -u -r1.81 String.java
--- java/lang/String.java	15 Feb 2006 23:00:38 -0000	1.81
+++ java/lang/String.java	7 Jun 2006 15:20:00 -0000
@@ -1820,7 +1820,7 @@
    */
   public synchronized int codePointCount(int start, int end)
   {
-    if (start < 0 || end >= count || start > end)
+    if (start < 0 || end > count || start > end)
       throw new StringIndexOutOfBoundsException();
 
     start += offset;

Reply via email to