You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Carlo Bertoldi <ca...@sempla.it> on 2010/04/01 11:37:00 UTC

Methods bodis are missing

Hi,
 I'm using ws-jaxme-0.5.2, and specifically the Java Source API.
What I'm trying to do is to parse an existing java source file and add
a costructor. So I began parsing the class and then writing it out again 
to see the results. 
Looking at the output I noticed that the methods bodies got lost.
Here is a fragment of my code:

File f = new File(file);

JavaSourceFactory jsf = new JavaSourceFactory();
JavaParser jp = new JavaParser(jsf);
        
jp.parse(f);

System.out.println(js);

Did I do something wrong?
Thanks,
 Carlo




Le informazioni contenute in questo messaggio sono riservate e confidenziali ed è vietata le diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene gentilmente comunicazione. Per qualsiasi informazione si prega di contattare (informazioni@sempla.it). Rif. D.L. 196/2003

This e-mail (including attachments) is intended only for the recipient(s) named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not the named recipient, please contact (informazioni@sempla.it) and delete the e-mail from your system. Rif. D.L. 196/2003.




RE: Methods bodis are missing

Posted by Carlo Bertoldi <ca...@sempla.it>.
> -----Original Message-----
> From: Jochen Wiedmann [mailto:jochen.wiedmann@gmail.com]
> Sent: Thu 4/1/2010 11:49 AM
> To: Carlo Bertoldi
> Subject: Re: Methods bodis are missing
>  
> This was never in scope of the application and, unless you'd implement
> it, won't be.
> 
> Sorry,
> 
> Jochen
> 
> 
> -- 
> Germanys national anthem is the most boring in the world - how telling!

Ok, too bad, but thanks anyway.
Another question: the class that I'm parsing has some private transient field.
but calling isTransient() on those particular fields returns false. 
Any suggestion?

Thanks,
 Carlo






Le informazioni contenute in questo messaggio sono riservate e confidenziali ed è vietata le diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene gentilmente comunicazione. Per qualsiasi informazione si prega di contattare (informazioni@sempla.it). Rif. D.L. 196/2003

This e-mail (including attachments) is intended only for the recipient(s) named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not the named recipient, please contact (informazioni@sempla.it) and delete the e-mail from your system. Rif. D.L. 196/2003.