diff options
| author | Tom Tromey <tromey@redhat.com> | 2005-10-24 16:29:08 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@redhat.com> | 2005-10-24 16:29:08 +0000 |
| commit | 2021ba9fe941e3454f7708359f40f4b7ef22d574 (patch) | |
| tree | 7ee0b3252395a4cb741547eff3ccc1ad7a518d66 /java/text/AttributedStringIterator.java | |
| parent | 48748d5783dc0a108fa6579c18570b88efe8fdeb (diff) | |
| download | classpath-2021ba9fe941e3454f7708359f40f4b7ef22d574.tar.gz | |
* java/text/AttributedStringIterator.java (getRunLimit): Add
explicit qualification.
(getRunStart): Likewise.
Diffstat (limited to 'java/text/AttributedStringIterator.java')
| -rw-r--r-- | java/text/AttributedStringIterator.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/text/AttributedStringIterator.java b/java/text/AttributedStringIterator.java index 95f7459cd..f6b9b1868 100644 --- a/java/text/AttributedStringIterator.java +++ b/java/text/AttributedStringIterator.java @@ -204,7 +204,9 @@ class AttributedStringIterator implements AttributedCharacterIterator 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 @@ class AttributedStringIterator implements AttributedCharacterIterator 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; |
