Maybe for the GregorianCalendar as Calendar is an abstract class...
You really use a custom calendar class ?
Just for curiosity what is the purpose of you own calendar class ?

Guillaume

> -----Message d'origine-----
> De : David Zejda [mailto:[EMAIL PROTECTED]
> Envoye : samedi 24 juillet 2004 07:59
> A : OJB Users List
> Objet : little suggestion about "instanceof"
> 
> 
> I think, it would be better to use something like
> 
> ((source != null) && (source.getClass()==Calendar.class))
> {
>      ...
> 
> in conversion strategies than
> 
> if (source instanceof Calendar)
> {
>      ...
> 
> to avoid reducing e.g. custom Calendar subclass to Calendar during 
> conversion.
> 
> David
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to