Closed arttu-salminen-insta-fi closed 9 months ago
Thank you for this report. When convenient please identify an example class/method with code snippet to help ensure that we address the correct code blocks.
Solution to this issue can be found here: https://github.com/arttu-salminen-insta-fi/opendis7-source-generator/commit/91707b217fccab938183b29685d5611c02987a48 . This solution also provides null safe equals checks to SISO_BITFIELD and CLASSREF types while increasing the performance of equals checks. We'll create a pull request to this project.
We've added solution to this issue to a previous pull request: https://github.com/open-dis/opendis7-source-generator/pull/15
Implemented as part of pull request.
Generated equalsImpl methods do unsafe checks for OBJECT_LIST type attributes. Method will throw IndexOutOfBoundsException when other object list is shorter that this object list. Equals method should not throw exceptions, list sizes should be compared before trying to access variables in the list.