[messages] [Module Design] Custom Java class maintainers

bobd bob__davison at hotmail.com
Sun Mar 20 12:57:05 MST 2011


Calling all Vassal module maintainers who have custom Java classes in
their modules, there is a bug fix in the next Vassal release that could
affect your custom Java code.


The behaviour of

Code:
new SequenceEncoder(null, delimiter);


has changed.  If you use this constructor with an explicit null it
should be changed to

Code:
new SequenceEncoder(delimiter);


You can make this change now as the two calls behave identically in the
current Vassal release.  

If you have code that relies on

Code:
new SequenceEncoder(var, delimiter);


to create an empty sequence when var is null then you will have to
modify your code as this will no longer hold true in future Vassal
releases (a sequence with one token of "" will be created). 

Thanks,
Bob

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=22307#p22307


More information about the messages mailing list