You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Felix Rudolphi (Jira)" <ji...@apache.org> on 2021/12/14 15:45:00 UTC

[jira] [Commented] (NETBEANS-5751) Exception

    [ https://issues.apache.org/jira/browse/NETBEANS-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459259#comment-17459259 ] 

Felix Rudolphi commented on NETBEANS-5751:
------------------------------------------

Ok, it seems it had to do with "bad use" of Generics, after fixing it the problem vanished:
public class A<BClass, CClass> {
    protected List<BClass> list;

    public void test() {
        list = new ArrayList<BClass>();
        otherClass.method((List<CClass>) list);
    }

// changed to
    protected List<CClass> list;

    public void test() {
        list = new ArrayList<CClass>();
        otherClass.method(list);
    }
// solved the problem
}

> Exception
> ---------
>
>                 Key: NETBEANS-5751
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5751
>             Project: NetBeans
>          Issue Type: Bug
>          Components: ide - UI
>    Affects Versions: 12.4
>            Reporter: Felix Rudolphi
>            Priority: Major
>         Attachments: Exception.7z
>
>
> Just opened a bigger Java EE Maven project, nothing special. In 11.3, this still works without problem, then the trouble started.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists