[gui][PATCH] Add missing Font fields

Mark Wielaard mark@klomp.org
Wed Nov 3 20:41:00 GMT 2004


On Wed, 2004-11-03 at 16:04, Bryce McKinlay wrote:
> Thomas Fitzsimmons wrote:
> >On Tue, 2004-11-02 at 17:22, Tom Tromey wrote:
> >
> >>Tom> 2004-11-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
> >>Tom> 	* java/awt/Font.java (name): New field.
> >>Tom> 	(size): Likewise.
> >>Tom> 	(style): Likewise.
> >>
> >>This seems a little weird to me, since the new fields aren't actually
> >>used anywhere.  Are they supposed to mean something to subclasses?  I
> >>understand wanting to have them to claim API compatibility
> >
> >Yeah, this is the reason I added them.
> >  
> To me it looks like a bug in the spec - a historical accident. The 
> fields should never really have been visible to subclasses. 
> Nevertheless, in order to claim compatibility we might as well make sure 
> we have them.

And Font is Serializable which means we should at least write them out
on the ObjectOutputStream. By adding them as real fields that should
happen automatically.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041103/708ed06c/attachment.sig>


More information about the Java-patches mailing list