(This is hard to explain so bear with me, also using the java 11 beta ide)
If I have an application that contains the following
A Main class
A Class module -- contains name as string and age as int and no code
A Code module -- contains no code at all just the default generated code
The main code creates a list that is populated with instances of the class (Person) from the class module with name and age set to values.
If I then list the contents of the list
For Each P As Person in theList
Log(p)
Next
I would expect to see
[name=???,age=??]
What I actually get is
[name=???, age=??, main=null, theCodeModuleName=null]
Why is it adding the code module to the item ?
The more code modules you add, the more you get in the item (all the code module names and main).