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 the following code, renaming (refactoring) the label "nextPos" to "blech" actually renamed the method from "describe" to "blech." (Note: I've deleted the comments, changed variable names, and shown only a code snippet, for confidentiality.) public String describe(String sample) { assert sample != null; String privPat = new String(sample); nextPos: for (int pos = 0; pos < privPat.length(); pos++) { for (FieldPat fp : fieldPatSet) { String fpName = fp.getName(); if (privPat.substring(pos).startsWith(fpName)) { pos += fpName.length(); continue nextPos; } } ... Steve
The refactoring for label is not implemented now, it just rename the element the cursor is placed over - it this case it is the wrapping method. This can be noticed in the dialog, where message informs about what's is going to be renamed
*** This bug has been marked as a duplicate of bug 165579 ***