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.
When a function is copied without the closing curly brace and pasted into the same document the editor gets into a neverending loop/beachball. When the function first gets renamed to functionname2 and then copied, then renamed back to functionname and pasted into the same document it does not get into a neverending loop/beachball.
Try it in the latest dev build [1], thanks. [1] http://bits.netbeans.org/download/trunk/nightly/latest/