On 11 avr. 2011, at 10:19, Nicolas Anquetil wrote:

first news on the bug with "SCG annotations examples"

I traced it to parsing :

"GetProperty getter = method.getAnnotation(GetProperty.class);"

where GetProperty is an annotation.

It would be a nice thing if Famix AnnotationType was actually a Famix Type (it's a NamedEntity).
Actually, given their definition in Java (has some kind of interface), it could make sense to define them as sub-class of Famix.Class ... ?

And AnnotationTypeAttribute should maybe relocated to.
I will think a bit over it. For information, JDT considers them to be somehow similar to methods ...


Not sure I understand everything. Can you give me the line number(s) which are likely involved in this problem? I just gave a look at the code and don't really know where to start.



nicolas


De: "Simon Denier" <simon.denier@gmail.com>
À: "Moose-related development" <moose-dev@iam.unibe.ch>
Envoyé: Samedi 9 Avril 2011 01:07:30
Objet: [Moose-dev] Re: Status of Java annotation import        with        infusion/VerveineJ?
[...]
Tests are ok except for 2. It's now a fresh update from svn.

That's the right behavior for now. The two faulty tests are things not yet implemented.
I will start working on them ASAP

on the other hand, hudson verveine project exhibits a strange behaviour:

Twice already, the number of tests dropped to 0 on the summary page (http://hudson.moosetechnology.org/job/verveinej/), and currently, there are still 17 failures when there should be only two.

The problem with 15 of these tests comes from a missing getBelongsTo() in famix.EnumValue. A problem that has been corrected.
So either Hudson deos not have the corrected Famix model, or it does not recreate the famix jar.

"NamedEntity.getBelongsTo() Not implemented in this class, use the proper subclass (fr.inria.verveine.core.gen.famix.EnumValue)"

Can you look into that Tudor?

[...]
will look at it right after correcting the bug with "SCG annotations examples"
To be compiled, you should run maven to download jar dependencies. However, it does not seem like it changed a thing in my case.
Maybe the jars should be added to the classpath of the parser at runtime?

did not get it?
why do you need maven?

Jars are added to the classpath in the verveine.sh shell script.

nicolas
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
Simon Denier