Here's another anomaly I found in my reasoning about Java interfaces through
MSE files. In the example with ArgoUML 0.28.1 there's a class called
ConfigurationFactory.java that declares a local variable in a static block:
static {
...
IConfigurationFactory newFactory = null;
...
}
Within MOOSE, the FAMIXLocalVariable "newFactory" shows up in the
structuresWithDeclaredTypes for the FAMIXClass "IConfigurationFactory".
However, its parentBehaviouralEntity is nil.
Is this because static blocks in Java don't map to behavioural entities in
FAMIX? I'm trying to understand the nil case, as it doesn't happen with all
FAMIXLocalVariables.
The problem is obviously that I can't find the dependency on the interface
in this case.
In the stated example, there's also a private static final Attribute, so the
MOOSE dependency comes through that in the end (it's a redundant
dependency). But I'm guessing there could be some cases where a dependency
via local variable used in a static block might not always be stored in an
Attribute.
Any ideas on how to work around this?
Possibly related:
https://github.com/moosetechnology/moose/issues/785
--
View this message in context:
http://forum.world.st/parentBehaviouralEntity-is-nil-for-Java-local-variabl…
Sent from the Moose mailing list archive at
Nabble.com.