Hi Martin,

Martin Quinson a écrit le 17/05/2020 à 22:31 :
> Hello again,
> 
> when I try to launch the program with your patch applied, I get the
> following backtrace:
> 
> Exception in thread "main" java.lang.ClassCastException: class
> org.json.simple.JsonArray cannot be cast to class
> org.json.simple.JsonObject (org.json.simple.JsonArray and
> org.json.simple.JsonObject are in unnamed module of loader 'app')
>         at plm.core.model.Users.loadUsersFromFile(Unknown Source)
>       at plm.core.model.Users.<init>(Unknown Source)
>       at plm.core.model.Game.<init>(Unknown Source)
>       at plm.core.model.Game.getInstance(Unknown Source)
>         at plm.core.ui.ProgrammersLearningMachine.main(Unknown Source)
>       
> I will try to fix it in the near future, but your help would of course
> be welcome. Don't modify your patch as it is applied and burried under
> other changes already. Instead, please propose another patch on top of
> the current state in the package in
> https://salsa.debian.org/java-team/plm/

I'll have a look at this.

> Btw, I fixed a bug in the package that made it unusable on new
> installation since maybe 4 years. It was only working with openjdk7 :(
> Now, you should be able to start the program with the plm helper script.
> 
> Thanks for your help,
> Mt.
> 
> On Sun, May 17, 2020 at 08:23:36AM +0200, Martin Quinson wrote:
>> Hello Gilles,
>>
>> many thanks for your help, this package is in a rather sorry state,
>> and I promise myself to do something about it since a long time.
>> Hopefully this will be the nodge I needed :)
>>
>> I happen to be the upstream maintainer of this software, and I'd like
>> to make things simpler if possible. Is it possible to update the code
>> so that the patch does not depend on the used version?
>>
>> I will try to apply this patch, and then patch upstream to use json-simple-3 
>> only.

I need first to have json-simple reverse dependencies compatible with
both versions, to be able to manage the transition.
Once the transition is over there is no problem making plm supporting
json-simple 3 only.

Thanks,

_g.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to