I have been working on my first Java project with the ‘Drools Planner’ package, using the JavaBean pattern for my classes. I inadvertently coded one of my classes to have a write-only property, which triggered this bug
might indeed return null if the property is write-only, as explained
in the JavaBeans(TM) Specification 1.01 Final Release
How do I programatically check my classes and see which one has the offending write-only property?
Or, since it’s a matter of just 6 classes, is there some rule of thumb to find it by eyeball?
Programatically you can use the bean descriptor to figure out the classes with no getter for properties
You can also check the IDE’s code completion to check whether your all properties have getters, initiate it and then type in ‘get’and ‘is’ it will list all the getters 🙂