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.
Created attachment 151504 [details] Screenshot of multiplied logs of the same event while debugging a GUI application. Product Version: NetBeans IDE 8.0 (Build 201403101706) Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb) Description: ============ Unchecking an event in "Select Listener" dialog actually does not unregister the appropriate listener. Next time user checks the same event, there will be already two (or more) same listeners registered. Steps to reproduce: =================== 1. Create new Anagram Game sample Java application. 2. Press Ctrl+F5 to start debugging. 3. Invoke "Debug > Take GUI Snapshot" from main menu. 4. In 'Snapshot of "Anagrams"' Editor window right click "Guess" button and invoke "Show Listeners" action from popup menu. 5. In "Events" output tab right click "Event Log" node and invoke "Set Logging Events..." action from popup menu. 6. Check "java.awt.event.MouseListener" and push "OK". 7. Repeat step 5, uncheck "java.awt.event.MouseListener" and push "OK". 8. Repeat step 5 and 6 again. 9. Now focus "Anagrams" window and hover your mouse over "Guess" button. 10. Switch back to NetBeans to see two "mouseEntered" and two "mouseExited" events logged in "Events" output tab.
Reproduced.
Fixed by changeset: 292246:bf7c7b522f49 http://hg.netbeans.org/core-main/rev/bf7c7b522f49
Integrated into 'main-silver', will be available in build *201509200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/bf7c7b522f49 User: mentlicher@netbeans.org Log: #249810: Remove properly the logging listeners.
Product Version: NetBeans IDE Dev (Build 201509210002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb) Verified. Thanks for the fix Martine.