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.

Bug 249810 - "Select Listener" dialog registers same event listener multiple times
Summary: "Select Listener" dialog registers same event listener multiple times
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-14 13:51 UTC by Jiri Kovalsky
Modified: 2015-09-21 09:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of multiplied logs of the same event while debugging a GUI application. (57.00 KB, image/png)
2015-01-14 13:51 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-01-14 13:51:01 UTC
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.
Comment 1 Martin Entlicher 2015-09-17 11:40:51 UTC
Reproduced.
Comment 2 Martin Entlicher 2015-09-17 14:17:31 UTC
Fixed by changeset:   292246:bf7c7b522f49
http://hg.netbeans.org/core-main/rev/bf7c7b522f49
Comment 3 Quality Engineering 2015-09-20 01:32:37 UTC
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.
Comment 4 Jiri Kovalsky 2015-09-21 09:36:02 UTC
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.