Request for Review 8014296: DivModTests should not compare pointers

roger riggs roger.riggs at
Fri May 10 15:02:29 UTC 2013

Please review this minor correction to DivModTests to address this issue:

With autoboxing of mixed types primitive and Object, the operators == and !=
are interpreted as reference compare instead of value compares.
The compiler is silent about the likely unintended consequences.


Thanks, Roger

More information about the core-libs-dev mailing list