Accessing Java class / object attributes in CheerpJ based PWA

I'm new to CheerpJ and I am working on creating a React Native module for ImageJ.js (CheerpJ translated version of Java based ImageJ aka ImJoy that runs in a progressive webapp (PWA)). I am running into an issue where attributes of Java objects on the JS side seem to have an integer after the attribute names (as shown in the image for this post). Upon further investigation I noticed a pattern where this integer seems to be the index of the attribute (eg. if a class 'Dog' has attributes 'height' and 'weight' defined in that order, they appear as height0, and weight1 in the JS console). Has anyone here seen any similar issue? Not sure if I am using CheerpJ correctly. Any help would be appreciated.
Screenshot_2024-03-12_at_6.03.18_PM.png
Was this page helpful?