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: | [81cat] Java hint: EqualsOnIncompatibleTypes test case is incorrect | ||
---|---|---|---|
Product: | qa | Reporter: | cezariusz <cezariusz> |
Component: | Test Specifications | Assignee: | Jiri Prox <jiriprox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cezariusz |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 8 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
cezariusz
2015-07-27 07:11:40 UTC
BTW: why some of the test cases' files start with an underscore, and some start with lowercase letter? Does it mean something? if (array1.equals(array2)) does not equal incompatible types, but rather two arrays. Here, equals is misleading, since array object does not define hashCode() or equals(), so array1.equals(array2) <=> array1 == array2. (In reply to cezariusz from comment #1) > BTW: why some of the test cases' files start with an underscore, and some > start with lowercase letter? Does it mean something? The name of class should match the name of the hint. Only the leading '.' is replaced by '_' I've fixed the sample file, thanks for providing the correct code |