Hi, On Sun, Nov 27, 2011 at 3:52 PM, kamiseq <[email protected]> wrote: > well yeah this is exactly the same except for locator. > > code like this > public final <C> IConverter<C> getConverter(Class<C> clazz) > { > if (Date.class.isAssignableFrom(clazz)) > { > return (IConverter<C>)converter; > } > else > { > return super.getConverter(clazz); > } > } > should always ring bells that something is wrong.
Care to explain what exactly is wrong ? > > anyway I think that type checking should be done while registering the > converter and not while getting it. > > pozdrawiam > Paweł Kamiński > > [email protected] > [email protected] > ______________________ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
