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.
Sometimes renaming a class node renames the source node other times it doesn't. I can usually reproduce this after creating the node by copy/paste and opening it in the editor or using NFT and immediately renaming it. Once a node has this problem, subsequent renames also don't work properly until IDE restart.
*** This issue has been marked as a duplicate of 11878 ***
Actually, I don't think this is a duplicate at all. This is the case where I'm renaming the main class and I *want* the source file renamed. Sometimes it works, sometimes it doesn't. There are some instructions on how to reproduce this (though it's not entirely easy) below.
I've changed the implementation so that checks for and keeps track of changes of a "main" class, which is the first public class in the source whose name matches the source filename. Marking as 3.2.1_CANDIDATE, but the fix is scattered throughout the class, so I can't guarantee it will be accepted.
[dev-212] Verified
[ffj30] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.