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.
Product Version: NetBeans IDE Dev (Build 201408220001) Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26 System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb) User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev Given: public void fire(Connection connection, Object[] oldRow, Object[] newRow) { if ((Byte) newRow[0] != 0) return; [...] } Netbeans suggests "Type cast to Byte is too strong. int should be used instead" which is incorrect because the array element is a Byte. Casting it to an "int" will result in a ClassCastException.
Should be fixed in jet-main#2ef72f2565fb; the hint should disappear in ambiguous situations.
Integrated into 'main-silver', will be available in build *201509170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2ef72f2565fb User: Svata Dedic <sdedic@netbeans.org> Log: #246658: wrong test for incompatible upcasts