Up Front 3.4.7 Obsolete Custom Code

Hello,

OS: Windows 10
Memory: 8GB
VASSAL: 3.6.0
Module: Up Front 3.4.7

The module send this warning:

Obsolete Custom Code
(detail)
Deprecated classes, methods, and fields in C:\Users\User\Documents\Documenti Boardgame Vassal\Up Front\Vassal\Up_Front_v3_4_7.vmod
(used by => removed item, date eligible for removal)
UpFront.Messenger => VASSAL.build.module.DiceButton$IconConfig, 2021-10-01

Can anyone to fix/repait this ?
Thank you in advance.
Alessandro

Thanks for asking about this—it made me realize that the Javadoc was missing the advice about what to use instead. I’ve submitted a patch to update the Javadoc here.

DiceButton.IconConfig is being replaced by AbstractToolbarItem.IconConfig. Since DiceButton is an AbstractToolbarItem, the change required in the code should be trivial, but it’s hard to say just what it consists of without being able to see the code.

Are you the maintainer of the module?

Hello Uckelman
I’m an Up Front player and a contributor. I’m not the maintainer.
I made only small changes for this module.
I love to play Up Front. with this module
Alessandro

Hello
I am still trying to eliminate the error message that appears when starting the UF module.
I state the module works correctly, but that message is annoying.
I read that below in internet but my informatic skill is about zero.

Into the file Messenger.class I tried to substitute in the row 0129 and 0130 DiceButton.IconConfig with AbstractToolbarItem.IconConfig. using dirtyJOE software.
And I changed the rows 0334 and 0335 DiceButton in AbstractToolbarItem.
Without any good result. Other new errors come out.
Can anyone help me or give any advice?
Thank You in advance.

What’s this program you’re using? What does it do?

What you need to do to fix the problem is to edit and recompile the custom code in the module.

Here, try this.

I decompiled Message.class, made the needed adjustment, and recompiled the class. Please confirm for me that this works. If so, I’ll uploaded it to the module page as 3.4.8.

Hello Uckelman,
the problem is fixed with your new improvement.
The “Obsolete Custom Code” message has disappeared .
Only the different Vassal version send this remind:
image
I think it will disappear when 3.6.8 is released and we will use it.
Thank you for your help.

Hello Uckelman
I also tried with version VASSAL-3.6.8-SNAPSHOT-86a6295-master-windows-x86_64, and all ok, without any warning or message.
Thank you