Status: New Owner: ---- CC: anquetil...@gmail.com Labels: Type-Enhancement Priority-Medium Component-VerveineJ
New issue 549 by tudor.gi...@gmail.com: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549
Nicolas is working on it, but the JDT parser is not parsing them for some reason it sees the enum keyword as an error. Strange.
Updates: Status: Fixed
Comment #1 on issue 549 by anquetil...@gmail.com: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549
(No comment was entered for this change.)
Updates: Labels: Milestone-4.4
Comment #2 on issue 549 by tudor.gi...@gmail.com: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549
Yuppee! :)
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@googlecode.com À: moose-dev@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...@gmail.com: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549
Yuppee! :)
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
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)
From http://download.oracle.com/javase/tutorial/java/javaOO/enum.html
"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@inria.fr À: "Moose-related development" moose-dev@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@googlecode.com À: moose-dev@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...@gmail.com: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549
Yuppee! :)
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Nicolas,
This is a good point.
I opened a ticket and I will fix it in FAMIX: http://code.google.com/p/moose-technology/issues/detail?id=568
Cheers, Doru
On 5 Apr 2011, at 18:36, Nicolas Anquetil wrote:
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)
From http://download.oracle.com/javase/tutorial/java/javaOO/enum.html
"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@inria.fr À: "Moose-related development" moose-dev@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@googlecode.com À: moose-dev@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...@gmail.com: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549
Yuppee! :)
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Next time you see your life passing by, say 'hi' and get to know her."