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.
I created a managed project with one source and one header file and included the header into the source. Then I renamed the header from projects tab - perfect, the file was renamed and the name in the #include directive changed as well, and the #include was resolved. When I renamed it again, both the file name and the text in the #include directive changed, but #include became unresolved. And stayed unresolved until I edited file, once I edited it, the #include directive became resolved. This happened with old code model and repeated several times.
It isn't very stable, unfortunately. With new model, it behaved differently, most times everything went smoothly, but several times the text in the #include directive was not changed.
Surprisingly, I can not reproduce it any more.