Skip to content

Incompatible Type Error in InstanceMap #9

@mishaturnbull

Description

@mishaturnbull

An error has been introduced in pull #8 that manifests in net.sf.openrocket.rocketcomponent.InstanceMap line 34:

Error:(34, 34) java: incompatible types: java.util.ArrayList<java.lang.Object> cannot be converted to java.util.ArrayList<net.sf.openrocket.rocketcomponent.InstanceContext>

Changing the line from

put(key, new ArrayList<>());

to

put(key, new ArrayList<InstanceContext>());

fixes this particular error, but then there are more issues that pop up in other files relating to a .getClass() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcriticalUrgent issuehelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions