Boolean bug calling custom java bl from Android SDK

Hello @Reece_Smith

I try with your step:

but the boolean field comes right.

Please show how the Information class looks like in your project Demo Service (screenshot where you have signed the Demo Service go to the Information class).

Please try to reproduce with those simple steps that you described, do you have a reproducible problem?

Hello @Reece_Smith

Thank you for a detailed description of the problem.
I seem to be able to reproduce the problem.
As there will be some additional information, we will inform you in this topic additionally.

Thanks @Volodymyr_Ialovyi , looking forward to seeing the resolution.

Hello @Reece_Smith

Please test the workaround:
Rename all getters for Boolean fields from getBooleanField to isBooleanField:
from

   public Boolean getBool1 ()
   {
     return bool1;
   }

to

   public Boolean isBool1 ()
   {
     return bool1;
   }

Please write about the result.

1 Like

Hi @Volodymyr_Ialovyi

That solves the issue if you set the boolean functions to is on the client side :+1:

Not sure this will solve the issue on Kotlin, but as a work around we can revert to java classes using is are you guys planning on putting more of a permanent fix in?

Cheers

Hi Reece,

I believe the is prefix is the standard convention for the boolean getter in Java. I’d correct @Volodymyr_Ialovyi that it is not a workaround, but actually is the right way to handle that scenario.

Regards,
Mark

1 Like