[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modisco] Re: New Java AST tool based on Java Abstract Syntax Discovery Tool

Hi Dennis,

I just installed Java AST, created a hello world plugin project (attached), and invoked the "Create Java AST model" on it but I got the following error:

String index out of range: 1400

Full stack trace:

java.lang.StringIndexOutOfBoundsException: String index out of range: 1400
at java.lang.String.substring(Unknown Source)
at org.eclipse.gmt.modisco.discoverer.javast.ASTDiscoverer.postVisit(ASTDiscoverer.java:1772)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2525)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:244)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2525)
at org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:136)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2525)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:502)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:484)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.gmt.modisco.jast.discoverer.popup.actions.CreateJavaAST.runAction(CreateJavaAST.java:93)
at org.eclipse.gmt.modisco.jast.discoverer.popup.actions.ProgressMonitorAction$1.run(ProgressMonitorAction.java:63)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Any ideas?

Cheers,
Dimitris

Dennis Wagelaar wrote:
Hello all,

A new tool for creating Java AST models in EMF is available at:
http://ssel.vub.ac.be/ssel/research/mdd/javaast

This tool creates EMF JavaAST models from Eclipse Java projects. These models can be used for analysis and model transformation. This tool was based on the MoDisco Java Abstract Syntax Discovery Tool. These are the differences with the original tool:

* Use generated EMF JavaAST meta-model.
* Remove AM3 dependencies.
* Add right-click action for Java projects.
* Create AST for entire Java project instead of single Java file (compilation unit).


Kind regards,
Dennis Wagelaar

Attachment: eu.kolovos.javaast.helloworld.zip
Description: Zip compressed data