|
|
Re: Bug in org.eclipse.epsilon.emc.emf [message #776803 is a reply to message #776748] |
Mon, 09 January 2012 04:50  |
Eclipse User |
|
|
|
Hi Dimitris,
thanks! Unfortunately, there are two more things i forgot to mention:
1. The method classForName(String, Registry) defined in AbstractEmfModel must be fixed too.
2. Due to lazy initialization of EPackages registered via EPackage.Descriptor the EPackage.Registry can be changed during iteration over it (calling getEPackage on EPackage.Descriptor causes the inialization of the EPackage, which then causes it to register itself at the registry). This will result in ConcurrentModificationExceptions thrown the fist time the registry is traversed in classForName(String, Registry). We have a workarond for this by simply iterating over a copy of the registry map. The patch is attached to this post.
Cheers,
Andrey
|
|
|
Powered by
FUDForum. Page generated in 0.04659 seconds