Skip to content

ImplicitlyImportedFeatures: make getExtensionClasses() and getStaticImportClasses() static methods #3692

@dilyanpalauzov

Description

@dilyanpalauzov

A class, which extends ImplicitlyImportedFeatures and overrides getExtensionClasses() and getStaticImportClasses(), should call super.getExtensionClasses() and super.getStaticImportClasses(). My understanding is that getExtensionClasses() and getStaticImportClasses are called for each model (XBase-derivative). So for each model instance, the lists from the above methods are supposed to be constructed anew.

It would be better, if the lists are constructed in a static block and the methods return the ready list. For this to wok in a meaningful way, super.getExtensionClasses() and super.getStaticImportClasses() should be static, so that a derived class can call them from a static block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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