BradWalker commented on PR #6112: URL: https://github.com/apache/netbeans/pull/6112#issuecomment-7043207546
@mbien , could you take a look at this again. There was a problem with getting it past the tests. Apparently it was a race condition in the test. So I did use AI to help with that one. Here is what Google AI had to say about the test failure: _"1. UndoableWrapper is registered globally via @MimeRegistration(mimeType="", service=UndoableEditWrapper.class) and uses an AtomicBoolean active flag—meaning it is designed to intercept document edits across threads. 2. docToFirst is a plain, unsynchronized HashMap. 3. In RefactoringSession.reallyDoRefactoring(), close() is called before setActive(false, null) (or while active.get() is still true on another thread). 4. While the refactoring thread is iterating docToFirst.values() inside close(), a background thread (such as the NetBeans Java indexer, parser, or BeforeSaveTasks cleanup) edits an open BaseDocument, triggering wrap(), which calls docToFirst.put(...) on the unsynchronized HashMap and throws ConcurrentModificationException."_ All other changes were done by hand. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
