Description
I'm trying to write a converter for my Entity classes; but am baffled by the seemingly useless requirement that the converter should extend the class of the object it's supposed to convert.
Why can't I just write a converter which is a plain class that implement IConverter? Why must this check exist?
The issue is about this code:
wicket/src/main/java/org/apache/wicket/markup/html/form/RadioChoice.java:437:
if (!converter.getClass().isAssignableFrom(objectClass))
{ throw new IllegalArgumentException("converter can not convert " + objectClass.getName() + " to string"); }