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(a)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) at
org.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
holger
PS: What is the license of that code?
[1]
http://www.saros-project.org/
<Example.java><workaround.diff>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
"What we can governs what we wish."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch