classpath
[Top][All Lists]
Advanced

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

Re: JDialog weirdness - what to do?


From: Roman Kennke
Subject: Re: JDialog weirdness - what to do?
Date: Fri, 04 Mar 2005 12:27:34 +0100

Am Freitag, den 04.03.2005, 11:22 +0100 schrieb Christopher Oezbek:
> On Fri, 4 Mar 2005 10:45:13 +0100, Thomas Zander <address@hidden> wrote:
> 
> >  if future versions define another item then you can still
> > _set_ that item on an older version without getting an exception.
> > It just won't do what you expect it to do.  Which in this case isn't  
> > halve
> > bad.
> 
> In the future enums should solve that problem it seems. With them you can  
> add items without forcing older clients to recompile and they make it hard  
> to set invalid values :)

While this is true in general, this does not apply to the standard
libraries. In an ideal world every occurance of ints for enum-like
constructs should be replaced by real enums, but this cannot happen in
java.* and javax.* for backwards compatibility. All the crap that was
once coded into the standard library will probably stay there forever.
Only in very rare cases Sun significantly changes odd behavior (example:
getContentPane() in JFrame in 1.5)

/Roman

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

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