Array not added to structural view on import

Issue #300 resolved
Matthias Schoettle created an issue

When an operation for an implementation class is imported, which has an array as a parameter type, it is created on the fly. However, it is never added to the structural view's types, which results in problems when saving (dangling href).

Comments (4)

  1. Matthias Schoettle reporter

    References #300: Fixes an issue, where an array is added multiple times, even if it exists already. Instead, the creation of the array is delegated to the existing getTypeByName method of RamModelUtils.

    → <<cset 11c2c58b41f3>>

  2. Matthias Schoettle reporter
    • changed status to open

    By fixing this issue, a new one was introduced, which occurs if a type cannot be found and it is an array. This is the case with byte[], because byte is currently not defined in the metamodel as a primitive type. See #443.

    Instead of continuing, the getType method should just return null, because this return is only used to compare with existing methods. This would just mean that an already imported method will be shown in the selector again.

  3. Log in to comment