Closed JoriDubrovin closed 8 years ago
The first issue is due to setLibraryDirectory being called in the constructor for the superclass org.modeldriven.alf.fuml.units.RootNamespaceImpl(). This is definitely a bug, which was covered up by the fact that org.modeldriven.alf.eclipse.fuml.execution.AlfCompiler has leftover code to explicitly set the default library (much as you did in your workaround).
The second issue was not a bug for the original intent of the Eclipse implementation, but it is for actually using the implementation as a plugin.
v0.6.0h works without problems using the new RootNamespaceImpl(URI)
constructor.
Resolved in v0.6.0h.
I am trying to set up the EMF resources for Libraries/uml/Alf.library.uml and other library files by running
That seems to run into two issues:
setLibraryDirectory
with nullresourceSet
, so pathmaps do not get initialized. This is an instance of the "calling a non-final method from constructor" problem.baseURI
is hard coded, so it does not find Libraries in the plugin.My current attempt at a workaround is
while patching RootNamespaceImpl with another constructor
Using v0.6.0g.