This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This code: int a = 3; int b = 2; double c = a / (double) b; triggers a hint to "remove redundant cast to double", but this obviously leads to integer division instead of floating point division, changing the answer from 1.5 to 1. Same applies to (double) a / b, (double) a / (double) b, and float too.
*** This bug has been marked as a duplicate of bug 237553 ***