﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21107	[Patch] Some of the key listeners forgot to remove themselves	rickmastfan67	team	"This is similar to #10233 from 2014.

Tested this with my normal and a fresh profile and was able to duplicate it in both.

Steps to reproduce:
1) Once JOSM is started, download a small area of data (doesn't matter how big).
2) Close JOSM.

What happens:
The following errors show up after JOSM closes the RemoteControl connections in the command line.

I manually typed out the errors due to only being able to snag them via a screenshot (which I can add later if requested).
{{{
WARNING: Some of the key listeners forgot to remove themselves: [org.openstreetmap.josm.actions.mapmode.SelectAction@606899f0]
WARNING: Some of the key modifier listeners forgot to remove themselves: org.openstreetmap.josm.tools.ListenerList@57b834ee
}}}

Errors only show up if you download data.  If you start and then close JOSM right away, the issues don't show up.

Also, did some testing to find the regression window.  This was introduced between r17977 (no issue) & r17992 (issue shows up).

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-07-13 00:27:59 +0200 (Tue, 13 Jul 2021)
Build-Date:2021-07-13 01:31:01
Revision:18009
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18009 en) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 498 MB / 1820 MB (262 MB allocated, but free)
Java version: 1.8.0_201-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890

Plugins:
+ OpeningHoursEditor (35640)
+ buildings_tools (35756)
+ measurement (35640)
+ reverter (35732)
+ tageditor (35640)
+ turnlanes-tagging (288)
+ turnrestrictions (35640)
+ undelete (35640)
+ utilsplugin2 (35691)
}}}"	defect	closed	normal	21.07	Core	latest	fixed		Bjoeni Don-vip
