Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354425

Summary: MyEPackage not yet available when injector is created.
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Moritz Eysholdt CLA 2011-08-10 14:30:46 EDT
MyEPackage not yet available when injector is created.

This is a problem because in AbstractMyJavaValidator.getEPackages() tries to fetch it from the registry.

However, in MyStandaloneSetupGenerated the injector is clearly created before the EPackage is registered.

AbstractMyJavaValidator.getEPackages() is executed while the injector is created because validators are bound eagerly.
Comment 2 Sebastian Zarnekow CLA 2011-08-15 14:23:49 EDT
We should keep this in mind for the redesigned validation infrastructure.
Comment 3 Sven Efftinge CLA 2012-11-23 02:09:52 EST
We won't (as I don't see how) fix it for the current validation infrastructure. And if we come up with something new, it should be defined for the language (as every other service) not for the EPackage.
So it won't be an issue at all.