First, some good news: I found the bug (well at least one instance of it)
Second, a question:
Why is EnumValue not a StructuralEntity ? (it is a NamedEntity)
"An enum type
is a type whose fields consist of a fixed set of constants."
they are considered fields in Java ...
I just realized Verveine does not export access to enumValues.
But with the meta-model I have (bare 4.3), it seems an access to an enumValue is an
invocation.
This is counter intuitive.
nicolas
----- Mail original -----
De: "Nicolas Anquetil"
<nicolas.anquetil(a)inria.fr>
À: "Moose-related development" <moose-dev(a)iam.unibe.ch>
Envoyé: Mardi 5 Avril 2011 12:43:41
Objet: [Moose-dev] Re: Issue 549 in moose-technology: VerveineJ should export enums
Hi,
just to let you know that I could create a java test file that
reproduces your bug.
---
java.lang.ClassCastException:
fr.inria.verveine.core.gen.famix.Attribute cannot be cast to
fr.inria.verveine.core.gen.famix.EnumValue
at
fr.inria.verveine.extractor.java.JavaDictionary.ensureFamixEnumValue(Unknown
Source)
---
Now all tests fail :-)
All is left to do is to correct the bug :-)
nicolas
----- Mail original -----
De: moose-technology(a)googlecode.com
À: moose-dev(a)iam.unibe.ch
Envoyé: Lundi 4 Avril 2011 23:45:06
Objet: [Moose-dev] Re: Issue 549 in moose-technology: VerveineJ
should export enums
Updates:
Labels: Milestone-4.4
Comment #2 on issue 549 by tudor.gi...(a)gmail.com: VerveineJ should
export
enums
http://code.google.com/p/moose-technology/issues/detail?id=549
Yuppee! :)
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev