Projet

Général

Profil

Actions

Anomalie #380

fermé

Enum treated as Null in speadl

Ajouté par Anonyme il y a presque 15 ans. Mis à jour il y a plus de 12 ans.

Statut:
Fermé
Priorité:
Haut
Assigné à:
-
Catégorie:
Eclipse Plugin Textual
Version cible:
Début:
15/09/2011
Echéance:
% réalisé:

0%

Temps estimé:

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 component
requires 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.

Actions

Formats disponibles : Atom PDF