classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: FYI: work around gcj bug


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: work around gcj bug
Date: 24 Oct 2005 10:22:30 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

I'm checking this in.

The regression tester was complaining because gcj failed to build
Classpath.  This little workaround is needed; a similar workaround is
already used in other parts of this file.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>

        * java/text/AttributedStringIterator.java (getRunLimit): Add
        explicit qualification.
        (getRunStart): Likewise.

Index: java/text/AttributedStringIterator.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/text/AttributedStringIterator.java,v
retrieving revision 1.11
diff -u -r1.11 AttributedStringIterator.java
--- java/text/AttributedStringIterator.java 24 Oct 2005 10:04:22 -0000 1.11
+++ java/text/AttributedStringIterator.java 24 Oct 2005 16:27:50 -0000
@@ -204,7 +204,9 @@
       Iterator iterator = attributeSet.iterator();
       while (iterator.hasNext()) 
       {
-        Attribute attributeKey = (Attribute) iterator.next();
+       // Qualified name is a workaround for a gcj 4.0 bug.
+        AttributedCharacterIterator.Attribute attributeKey
+         = (AttributedCharacterIterator.Attribute) iterator.next();
         Object v1 = runValues.get(attributeKey);
         Object v2 = getAttribute(attributeKey, limit + 1);
         boolean changed = false;
@@ -287,7 +289,9 @@
       Iterator iterator = attributeSet.iterator();
       while (iterator.hasNext()) 
       {
-        Attribute attributeKey = (Attribute) iterator.next();
+       // Qualified name is a workaround for a gcj 4.0 bug.
+        AttributedCharacterIterator.Attribute attributeKey
+         = (AttributedCharacterIterator.Attribute) iterator.next();
         Object v1 = runValues.get(attributeKey);
         Object v2 = getAttribute(attributeKey, prev);
         boolean changed = false;




reply via email to

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