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.
The current brace completion infrastructure java.editor/src/org/netbeans/modules/editor/java/BraceCompletion.java has methods which are called after insert. Task #204450 rewrite actions to use TypingHooks SPI, where changes in document are done before insert. Therefore rewriting with use of BraceCompletion created bug #207609 - Brace completion regressions like undo problem. There should be rewrite of BraceCompletion' methods from after insert behavior to before insert behavior and also to typing context.
Created attachment 115958 [details] Api Change with use case I rewrite BraceCompletion' methods and this involved following changes in editor.lib api: - Change in assert to fix inserting empty text to TypedTextInterceptor.MutableContext - Replace is done before perform insert, before typing hooks insert method
http://hg.netbeans.org/jet-main/rev/e9a6ebb16ec5