Issue 643 in moose-technology: VerveineJ crashes on a strange invocation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 643 in moose-technology: VerveineJ crashes on a strange invocation

moose-technology
Status: New
Owner: ----
CC: [hidden email]
Labels: Type-Defect Priority-Medium Component-VerveineJ

New issue 643 by [hidden email]: VerveineJ crashes on a strange  
invocation
http://code.google.com/p/moose-technology/issues/detail?id=643

Parsing the attached example, produces the below error. I tried to debug  
this, but I could not figure out where the problem was:

Exception in thread "main" java.lang.NullPointerException
        at  
org.eclipse.jdt.core.dom.MethodBinding.isAnnotationMember(MethodBinding.java:55)
        at  
fr.inria.verveine.extractor.java.VerveineVisitor.methodInvocation(Unknown  
Source)
        at fr.inria.verveine.extractor.java.VerveineVisitor.visit(Unknown Source)
        at  
org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:323)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2528)
        at  
org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:136)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551)
        at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2528)
        at  
org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:504)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551)
        at  
org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:484)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551)
        at  
org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:219)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
        at fr.inria.verveine.extractor.java.FamixRequestor.acceptAST(Unknown  
Source)
        at  
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1016)
        at  
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:628)
        at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:982)
        at fr.inria.verveine.extractor.java.VerveineJParser.parse(Unknown Source)
        at fr.inria.verveine.extractor.java.VerveineJParser.main(Unknown Source)



Attachments:
        WrongInvocation.java  161 bytes

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 643 in moose-technology: VerveineJ crashes on a strange invocation

moose-technology
Updates:
        Status: Fixed

Comment #1 on issue 643 by [hidden email]: VerveineJ crashes on a  
strange invocation
http://code.google.com/p/moose-technology/issues/detail?id=643

I corrected this afternnon a bug with calling parameterized methods.
Iyt seems you got hit by it just before that.
Were you using the very last version of verveineJ ?

Anyway, I put your example in the test cases and it parses without error

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 643 in moose-technology: VerveineJ crashes on a strange invocation

moose-technology

Comment #2 on issue 643 by [hidden email]: VerveineJ crashes on a  
strange invocation
http://code.google.com/p/moose-technology/issues/detail?id=643

Thanks :)

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev