Status: New
Owner: ---- CC: [hidden email] Labels: Type-Enhancement Priority-Medium Component-VerveineJ New issue 549 by [hidden email]: 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. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Updates:
Status: Fixed Comment #1 on issue 549 by [hidden email]: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549 (No comment was entered for this change.) _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Updates:
Labels: Milestone-4.4 Comment #2 on issue 549 by [hidden email]: VerveineJ should export enums http://code.google.com/p/moose-technology/issues/detail?id=549 Yuppee! :) _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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: [hidden email] > À: [hidden email] > 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 [hidden email]: VerveineJ should > export > enums > http://code.google.com/p/moose-technology/issues/detail?id=549 > > Yuppee! :) > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev _______________________________________________ Moose-dev mailing list [hidden email] 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" <[hidden email]> > À: "Moose-related development" <[hidden email]> > 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: [hidden email] > > À: [hidden email] > > 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 [hidden email]: VerveineJ should > > export > > enums > > http://code.google.com/p/moose-technology/issues/detail?id=549 > > > > Yuppee! :) > > > > _______________________________________________ > > Moose-dev mailing list > > [hidden email] > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev _______________________________________________ Moose-dev mailing list [hidden email] 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" <[hidden email]> >> À: "Moose-related development" <[hidden email]> >> 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: [hidden email] >>> À: [hidden email] >>> 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 [hidden email]: VerveineJ should >>> export >>> enums >>> http://code.google.com/p/moose-technology/issues/detail?id=549 >>> >>> Yuppee! :) >>> >>> _______________________________________________ >>> Moose-dev mailing list >>> [hidden email] >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > _______________________________________________ > Moose-dev mailing list > [hidden email] > 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." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |