Hi all,

I've hit this problem quite a few times now, so I decided to fix it. I
changed this constructor:
  public Label(final String id, String label)
to:
  public Label(final String id, Serializable label)

AFAIK, this should not introduce any compatibility issues, however I'm
getting this error from clirr:
org.apache.wicket.markup.html.basic.Label: Parameter 2 of 'public
Label(java.lang.String, java.lang.String)' has changed its type to
java.io.Serializable.

Do I miss something, or is this a bug in clirr? Changing a constructor
argument to accept a wider type should not be a problem. You can't override
a constructor as you can with a method, you can only call it from a
subclass, which should still work. Shall I add this to the ignore list?

Best regards,
Emond

Reply via email to