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 parsing api does not cancel parser when a new ParserResultTask with higher priority or UserTask is scheduled. This causes several slownesses in the editor and affects responsiveness of the editor. This API change deprecates the Parser.cancel() method, the deprecated method behaves as before the change, and adds a new cancel method with parameters describing the cancel reason. This method is called even in case when a new task was added. The parser can use the provided information to determine if it should stop and which data are obsolete.
Created attachment 102360 [details] diff file
Overall seems fine to me, except that SourceModificationEvent might need another constructor for compatibility: @Deprecated protected SourceModificationEvent (Object source) { this(source, true); }
Thanks Honzo, I've overlooked that the constructor is protected.
I think, it's fine to me.
I will integrate it tomorrow.
Fixed jet-main d1171e687187