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.

Bug 240646 - When following up a Unnecessary Cast to byte hint, I get into a situation that cannot compile.
Summary: When following up a Unnecessary Cast to byte hint, I get into a situation tha...
Status: RESOLVED DUPLICATE of bug 237553
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-18 17:21 UTC by skiwi
Modified: 2014-01-20 09:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skiwi 2014-01-18 17:21:39 UTC
For the following piece of code:

byte[] bytes = new byte[12];
Arrays.fill(bytes, (byte)0);

Netbeans suggests that I should remove the unnecessary cast to byte, - giving Arrays.fill(bytes, 0) - however that leads to an error, as Java cannot figure out which overload of Arrays.fill to use then.
Comment 1 Jiri Prox 2014-01-20 09:37:59 UTC

*** This bug has been marked as a duplicate of bug 237553 ***