Closed Venorcis closed 3 years ago
Thanks. The implications are a bit beyond me though and I vaguely recall some earlier discussion about equality. @ssardina? @anionic?
Thanks. The implications are a bit beyond me though and I vaguely recall some earlier discussion about equality.
In GOAL we extend the JPL objects to add some of our own functionality (i.e. to comply with generic KR interfaces). The getClass comparisons fail on those (sub)objects, making them all non-equal. The instanceof checks work correctly on those subclasses.
Fix the class comparison in all Java equals() methods in order to allow working inheritance.
Also commented out 1 line that gave a warning about being unused.
Tested working (this resolves some issues with how GOAL uses JPL).