Request for Review 8014296: DivModTests should not compare pointers (original) (raw)
roger riggs roger.riggs at oracle.com
Fri May 10 15:02:29 UTC 2013
- Previous message: hg: jdk8/tl/jdk: 8011128: (fs) Files.createDirectory fails if the resolved path is exactly 248 characters long
- Next message: Request for Review 8014296: DivModTests should not compare pointers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Please review this minor correction to DivModTests to address this issue: http://bugs.sun.com/view_bug.do?bug_id=8014296
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.
Webrev: http://cr.openjdk.java.net/~rriggs/webrev-8014296-DivModTests/
Thanks, Roger
- Previous message: hg: jdk8/tl/jdk: 8011128: (fs) Files.createDirectory fails if the resolved path is exactly 248 characters long
- Next message: Request for Review 8014296: DivModTests should not compare pointers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]