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.
When utilizing code-completion of Javadoc, the type of the field displayed does not match the actual type of the field if a field of the same name (and different type) exists in a superclass. public class TestParent { public static final String TEST = null; } /** * {@link #| (* code completion invoked *) +----------------------------------------+ | # TEST String | +----------------------------------------+ */ public class TestChild extends TestParent { public static final Object[] TEST = null; } Note that the type is listed as String (the type of a similarly-named static field in the superclass) when it is really of type Object[]. This may also be the case for type resolution of non-static fields.
The problem seems to be in java code completion, as this also happens with "normal" code completion and javadoc is reusing it.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/7d12368fb6a0
Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7d12368fb6a0 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #142165: Code completion ignores overridden fields - fixed.