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.
e.g. in: class User { String name | } it offers also 'for', 'if' etc., but it makes no sense there. See Java editor for correct behavior.
Keyword-completion is done in an approximational fashion based on completion location and surrounding.
v.