﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21420	[Patch] JosmComboBox refactoring causes Coverity warning: Type mismatch between JList<Object> and JList<E>	Don-vip	team	"Since #21319 / r18221, the following code in JosmComboBox causes a warning in coverity:

{{{
#!java
    @SuppressWarnings(""unchecked"")
    public JList<E> getList() {
        Object popup = getUI().getAccessibleChild(this, 0);
        if (popup != null && popup instanceof javax.swing.plaf.basic.ComboPopup) {
            return ((javax.swing.plaf.basic.ComboPopup) popup).getList();
        }
        return null;
    }
}}}

{{{
Using Eclipse FE
[WARNING] Internal compilation issue: src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java 304:20 Type mismatch: cannot convert from JList<Object> to JList<E>
[WARNING] Native compilation failure
[WARNING] Body of method 'org.openstreetmap.josm.gui.widgets.JosmComboBox.getList()' discarded due to error recovery.
Compilation successful!
}}}

@marcello: Do you see a way to avoid that?"	defect	closed	normal	21.10	Core		fixed	regression coverity	marcello@…
