[messages] [Technical Support & Bugs] Cut & Paste in Module Editor not working for custom subclass

Joel Uckelman uckelman at nomic.net
Thu Mar 17 06:45:37 MST 2011

Thus spake george973:
> When using a custom subclass of PieceSlot (in order to override piece
> dragging to display number of hexes dragged) I found I was unable to
> paste a piece after cutting or copying it.
> Investigating the error is due to the custom class not being recognised
> as a valid class of configurable at the location where it is to be
> pasted, even though it is a subclass of a valid class.
> The error is in VASSAL.configure.ConfigureTree at line 839:
> should be
> if (c[i].isAssignableFrom(child.getClass())) {
> instead of
> if (c[i] == child.getClass()) {
> so that subclasses can be substituted for the standard class.

Would you file a bug for that, so that we remember to fix it for 3.1.16?

More information about the messages mailing list