I'm getting an InstantiationException when trying to map Date -> Calendar.
Simple test follows:
@Test
public void testConversion()
{
GregorianCalendar cal = new GregorianCalendar(2009, 2, 3);
Date sourceValue = cal.getTime();
DozerBeanMapper mapper = new DozerBeanMapper();
Object result = mapper.map(sourceValue, Calendar.class);
}
According to the docs, this is supported out of the box (even though Calendar is abstract). Anyone got experience with this and able to point out what I'm doing wrong?