You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java, the full qualify name of a class includes an $ symbol in front of inner java class name. Consequently, when comparing a method signature from the JVM with signature generated from a Famix Moose java model (e.g. with mooseNameWithDots); the two signatures do not match.
"example: "
model :=MooseModel root first.
inner := (model allModelClasses detect:#isInnerClass).
inner mooseNameWithDots
"'fr.magnus.ucbondecommande.ihmintranet.fiche.OngletIdentification.AchatGrilleListener'""instead of (from Java)""'fr.magnus.ucbondecommande.ihmintranet.fiche.OngletIdentification$AchatGrilleListener'"
proposed solution
my solution is 'hacky', because moose name are store in cache, I've changed the method mooseNameWithDots and mooseNameOn
problem description
In Java, the full qualify name of a class includes an
$
symbol in front of inner java class name. Consequently, when comparing a method signature from the JVM with signature generated from a Famix Moose java model (e.g. with mooseNameWithDots); the two signatures do not match.proposed solution
my solution is 'hacky', because moose name are store in cache, I've changed the method
mooseNameWithDots
andmooseNameOn
The 'hack' is to resetMooseName each time to be sure that it is now store properly.
This solution works but may causes compatibility issues.
(my first famix issue 🤓 )
The text was updated successfully, but these errors were encountered: