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.
NB6: 200706130000 Woodstock 4.1 200706132309 Blueprints: 0.1.2 The autocomplete signature looks like: public void autoComplete1_complete(FacesContext context, String prefix, CompletionResult result) { } In 0.1.1 it use to look like: public void autoComplete1_complete(FacesContext context, String prefix, CompletionResult result) { //result.addItem("Hello"); //result.addItem(prefix.toUpperCase()); } This existed for demo/tutorial purposes.
The complib has not changed in this regard. It must be that the platform has changed. Reassigning to edwingo, hoping he has insights or otherwise knows the appropriate platform engineer to address this.
I believe insync is responsible for inserting the code based on the metadata that is part of the component. So I will reassign to someone who works on insync.
I am able to reproduce this. Most likely TreeMaker (a Retouche utility class issue). Investigating further...
This seems to a problem in Class: org.netbeans.api.java.source.TreeMaker Method: public MethodTree Method(ModifiersTree modifiers, CharSequence name, Tree returnType, List<? extends TypeParameterTree> typeParameters, List<? extends VariableTree> parameters, List<? extends ExpressionTree> throwsList, String bodyText, ExpressionTree defaultValue) When the passed in body text it only // comments or a statement follwed by // comments, the // comments are not presisted. Lark, can you please attach the complib and details steps to reproduce for Retouche folks? Thanks.
Yes, it is known problem. Currently comments are always related to statement, if there is no statement, comment is not printed. Thanks for the report. *** This issue has been marked as a duplicate of 103623 ***