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.
Summary: | Erroneous "The array is only written to, never read from" and "The assigned value is never used" | ||
---|---|---|---|
Product: | java | Reporter: | Zom-B |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Zom-B
2014-06-02 12:56:38 UTC
The 'assigned value' warning is gone (another bug report was for that) -- the value is actually used by `data[p++]' statement. The other warning is tough; if the array is shared / referenced from elsewhere, it may be valid only to stuff data into it, since it will be acquired and accessed by other means than just direct access through the array reference. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |