[cp-patches] FYI: Qualify ElementSpec

Mark Wielaard mark at klomp.org
Sat Jun 10 11:39:40 UTC 2006


Hi,

gcj 4.0 (I propose after the new release we require gcj 4.1+) had some
trouble compiling some new text/html code. Fixed as follows:

2006-06-10  Mark Wielaard  <mark at klomp.org>

       * javax/swing/text/html/HTMLDocument.java (addSpecialElement):
       Qualify ElementSpec.

Committed,

Mark

diff -u -r1.33 HTMLDocument.java
--- javax/swing/text/html/HTMLDocument.java     10 Jun 2006 09:10:58 -0000     1.33
+++ javax/swing/text/html/HTMLDocument.java     10 Jun 2006 11:37:55 -0000
@@ -1437,8 +1437,10 @@
       // TODO: Figure out why we must always insert this single character
       // (otherwise the element does not appear). Either fix or add explaining
       // comment or at least report a normal bug.
-      ElementSpec spec = new ElementSpec(copy, ElementSpec.ContentType,
-                                         new char[] {' '}, 0, 1 );
+      DefaultStyledDocument.ElementSpec spec;
+      spec = new DefaultStyledDocument.ElementSpec(copy,
+       DefaultStyledDocument.ElementSpec.ContentType,
+        new char[] {' '}, 0, 1 );
       parseBuffer.add(spec);
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060610/18c0859b/attachment.pgp


More information about the Classpath-patches mailing list