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.
in NB6.1,create a class file which named "User.java" and enter codes like this: public class User{ private String username; private String password; public String getUsername(){ return username; } public void setUsername(String username){ this.username=username; } } choose "Refactor->Encapsulate Fields" menu, in the refactor dialog box, choose all the fields to generate setter/getters. After do above operations,IDE sometimes popup a error dialog(please see the attachment), and does not generate the Setter/Getter method for field password. I test with other class,it is seemed that if your have a Setter/Getter methods for a field, the IDE can not generate Setters/Getters for the remain fields.
Created attachment 62213 [details] screen snap for refactor npe dialog box
Created attachment 62214 [details] the IDE log file
Created attachment 62216 [details] the encapsulate fields dialog box which cause error message
This issue is already fixed and the fix will be included in patch 2. Thanks for your report anyway. *** This issue has been marked as a duplicate of 131619 ***