Re: [Jastadd] RagDoll bug report

From: Jesper qvist <jesper.oqvist_at_cs.lth.se>
Date: Thu, 16 Feb 2012 15:57:48 +0100

Hi Jesper,

This is a known bug which there is currently no simple fix for. JastAdd2
uses JJTree to build the parse trees for attribute weaving etc. This
tree is not as simple to work with a JastAdd AST, so unparsing comments
and inserting the correct documentation tags is a hassle. For reasons I
can not fully recall at the moment I couldn't safely modify the comments
of methods declared in aspects since JJTree node for the comments are
used in JastAdd2 for other purposes as well.

Ideally, in some distant future, we can move on to use JastAdd3 which
parses the rag files into a more familiar AST. This would make the
generation of RagDoll documentation comments simpler.

/Jesper

On 02/16/2012 02:11 PM, Jesper Mattsson wrote:
>
> Hi
>
> The generation of RagDoll JavaDoc comments doesn't seem to handle
> methods or classes declared using normal Java syntax at all.
>
> Example:
>
> If we have the following files:
>
> A.ast:
>
> A ::= /* ... */;
>
> B.jrag:
>
> // ...
>
> public class A { // Adding method to AST class
>
> public void f1() {
>
> // ...
>
> }
>
> }
>
> public class B { // Declaring a new non-AST class
>
> public void f2() {
>
> // ...
>
> }
>
> }
>
> public int B.f3() { // Adding method to non-AST class
>
> return 2;
>
> }
>
> Then none of the function f1(), f2(), or f3() nor the class B will
> have proper RagDoll comments. I don't remember exactly what cases
> gives what behavior, but sometimes we get no comments at all and
> sometimes we get comments with "_at_declaredat :0".
>
> We are using JastAdd version R20110902.
>
> Jesper
>
> *Jesper MATTSSON, MSc*
>
> Software Developer & IT Administrator
>
> Phone direct: +46 73 324 5909
>
> Email: jesper.mattsson_at_modelon.com <mailto:jesper.mattsson_at_modelon.com>
>
>
> Description: Description: Description: Modelon_2011_Gradient_RGB_400
>
> ------------------------------------------------------------------------
>
> Modelon AB
> Ideon Science Park
> SE-223 70 Lund, Sweden
>
>
>
> Phone: +46 46 286 2200
> Fax: +46 46 286 2201
>
>
>
>
> Web: http://www.modelon.com <http://www.modelon.com/>
>
>
> _______________________________________________
> JastAdd mailing list
> JastAdd_at_cs.lth.se
> https://mail1.cs.lth.se/cgi-bin/mailman/listinfo/jastadd
Received on Thu Feb 16 2012 - 15:57:08 CET

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST