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.
[ BUILD # : 201212080001 ] [ JDK VERSION : 1.7.0_09 ] Code completion in hibernate mapping file (documentation auto popup is enabled) ACTUAL: documentation popup shows no helpful description - only a duplicate of the tag - see screenshot EXPECTED: show real documentation or leave it out --- Product Version: NetBeans IDE Dev (Build 201212080001) Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02 Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Created attachment 129092 [details] Shows the nonhelpful documentation popup
yes, may be nice to remove completely or fill with some information, will try in 7.3
just tried to create sample xml in j2se and add <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> and got the same for completion of this "web.xml", itt's generic nb xml completion. hibernate support adds nothing here.
Hm. When using DTD-based completion, no documentation is ever created. For XML Schema-based files, "documentation" can be created from the annotation/documentation elements, if present. Even Hibernate 4.1 final schema files do no contain these supplemental elements, some brief descriptions are provided as comments (with no particular scheme of placement, once before the element, once after the element, especially if an element occupies just one line).
Is there any sense to show this popup without any real information?
Of course it is a nonsense. BTW - a GrammarQuery can be created within Hibernate support and generate the possible completions instead of the default DTD-based grammar. In that case, proper documentation may be attached to the proposed completions. Fixed in http://hg.netbeans.org/jet-main/rev/2cb9a6de24ff