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.

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!

Mis à jour par Anonyme il y a plus de 12 ans

  • Statut changé de Résolu à Fermé
Actions

Formats disponibles : Atom PDF