yes, specifically, if you could indicate what source code your are trying to parse it would help to reproduce the problem.
I looked into http://www.saros-project.org/ but could not find a clear "Download" link.
Also as it is an eclipse plugin, do you parse it alone or with eclipse code?
nicolas
On Wednesday 15 February 2012 07:25:34 Tudor Girba wrote:
Hi,
Can you provide the scenario so that we can try to reproduce?
Cheers, Doru
On 14 Feb 2012, at 15:31, Fabrizio Perin wrote:
Hi, did you try with the other extractor:
http://www.intooitus.com/products/infamix
the last verison seems much better then the previous I tried to use.
Cheers, Fabrizio
2012/2/14 Stéphane Ducasse stephane.ducasse@inria.fr can you send the mail to the moose-dev? Because I'm busy.
Stef
On Feb 14, 2012, at 2:01 PM, Holger Hans Peter Freyther wrote:
Hi Stephan,
I took a break from my GSM work and wrap up my studies (German Diploma is gone, it ends up only being a Bachelor..). I tried to import Saros[1] into moose and ended up with Exceptions on parsing catch statements. I have attached a file that shows this issue and the backtrace is below:
*** VerveineJ visitor got exception: 'fr.inria.verveine.core.gen.famix.Type cannot be cast to fr.inria.verveine.core.gen.famix.Class' while processing file: /home/ich/uni/bachelor-arbeit/dpp/de.fu_berlin.inf.dpp/src/de/fu_ber lin/inf/dpp/Example.java java.lang.ClassCastException: fr.inria.verveine.core.gen.famix.Type cannot be cast to fr.inria.verveine.core.gen.famix.Class
at fr.inria.verveine.extractor.java.VerveineVisitor.visit( Unknown Source) at org.eclipse.jdt.core.dom.CatchClause.accept0(CatchClaus e.java:162) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode .java:2585) at org.eclipse.jdt.core.dom.TryStatement.accept0(TryStatem ent.java:258) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode .java:2585) at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.ja va:2562) at org.eclipse.jdt.core.dom.IfStatement.accept0(IfStatemen t.java:190) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode .java:2585) at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.ja va:2562) at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(Meth odDeclaration.java:504) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode .java:2585) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDe claration.java:484) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode .java:2585) at org.eclipse.jdt.core.dom.CompilationUnit.accept0(Compil ationUnit.java:219) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:25 14) at fr.inria.verveine.extractor.java.FamixRequestor.acceptA ST(Unknown Source) atorg.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(Compilation UnitResolver.java:1016)> > at
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(Compilation UnitResolver.java:628)> > at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser .java:988) at fr.inria.verveine.extractor.java.VerveineJParser.parse( Unknown Source) at fr.inria.verveine.extractor.java.VerveineJParser.main(U nknown Source)> > I have attached a workaround but I don't understand under which circumstances a type might not be resolvable to a Class (wrong classpath). Somehow the code already accepts a nil class, so adding the exception handling only makes the code more ugly but might end up being correct.
cheers
holgerPS: What is the license of that code?
[1] http://www.saros-project.org/ <Example.java><workaround.diff>
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
"What we can governs what we wish."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev