Community
Participate
Working Groups
The generated standalone setup class (e.g. XyzStandaloneSetupGenerated) should register the generated EPackages before creating the injector. This may be necessary as there may be eager bindings in the injector which access the EPackage registry. This is actually even the case for a language's validator which is typically registered as an eager singleton by the JavaValidatorFragment generator fragment. But it turns out not to be a problem because the validator typically accesses the EPackage using the eINSTANCE field which will then actually perform the EPackage registration.
(In reply to Knut Wannheden from comment #0) > But it turns out not to be a problem because the validator > typically accesses the EPackage using the eINSTANCE field which will then > actually perform the EPackage registration. Isn't that than a viable solution in any case? I'm afraid we break clients if we change the order of initialization.
Closing as WONTFIX for now, since breaking clients is not acceptable at this time. Moving to Backlog.