Anomalie #380
ferméEnum treated as Null in speadl
0%
Description
I use the AVT of Sylvain L in one of my components, and I wanted the component to provide an Interface allowing to send feedbacks to it.
An important thing is that Feedback is not a simple class but an enum type, declared as : public static enum Feedback {INCREASE, DECREASE, GOOD};
In my component I declared the following:provides adjustCurrentValue : Push[Feedback]
I also declared a require in another componentrequires adjustCurrentValue : Push[Feedback]
But when I do the binding, MAY tells me the following "Description Resource Path Location Type
incompatible type fr.irit.smac.may.lib.interfaces.Push[void] and fr.irit.smac.may.lib.interfaces.Push[void] (on a InfraInstanceBinding)[...]"
And in the generated code, the method is declared as following : public final fr.irit.smac.may.lib.interfaces.Push<void> adjustCurrentValue() {
return this.adjustCurrentValue;
};
My guess is a problem with May handling enum type.
Mis à jour par Anonyme il y a presque 15 ans
- Catégorie mis à Eclipse Plugin Textual
- Statut changé de Nouveau à In Progress
- Assigné à mis à Anonyme
- Version cible mis à 2.0
Linked to inner class references
Mis à jour par Anonyme il y a plus de 12 ans
- Statut changé de In Progress à Résolu
- Translation missing: fr.field_remaining_hours mis à 0.0
ha ha ha, finally!
resolved in v3!