[abc-users] Polyglot.util.InternalCompilerError with JastAdd front end

From: Soha Makady <smakady_at_hotmail.com>
Date: Tue, 21 Jul 2009 08:34:44 +0000

Hello,
I am trying to compile a java project using aspect bench compiler (with a very simple tracematch). I tried to compile using the abc-ja-exts-complete.jar (version 1.3) downloaded as a jar file from the downloads section using the following command:

java -cp JUnit4.5.jar;abc-ja-exts-complete.jar abc.main.Main -ext abc.ja.tm -debug dontCheckExceptions -d D:\lucene2.3.2\bin -sourceroots D:\lucene2.3\src\java\
And I keep getting the following error
Exception in thread "main" polyglot.util.InternalCompilerError: unhandled exception during compilation
        at abc.main.CompileSequence.runSequence(CompileSequence.java:110)
        at abc.main.Main.run(Main.java:406)
        at abc.main.Main.main(Main.java:144)
Caused by: java.lang.RuntimeException: Class org.apache.lucene.index.DocumentsWriter$FieldMergeState doesn't have method get$postings$access$8([org.apache.lucene.index.DocumentsWriter$FieldMergeState]) : org.apache.lucene.index.DocumentsWriter$Posting[]
        at soot.SootClass.getMethod(SootClass.java:414)
        at abc.ja.tm.jrag.MethodDecl.sootMethod_compute(MethodDecl.java:1582)
        at abc.ja.tm.jrag.MethodDecl.sootMethod(MethodDecl.java:1570)
        at abc.ja.tm.jrag.MethodDecl.refined_EmitJimple_MethodDecl_jimplify2(MethodDecl.java:370)
        at abc.ja.tm.jrag.MethodDecl.jimplify2(MethodDecl.java:887)
        at abc.ja.tm.jrag.ASTNode.jimplify2(ASTNode.java:610)
        at abc.ja.tm.jrag.ASTNode.jimplify2(ASTNode.java:610)
        at abc.ja.tm.jrag.TypeDecl.jimplify2(TypeDecl.java:1130)
        at abc.ja.tm.jrag.TypeDecl.jimplify2(TypeDecl.java:1135)
        at abc.ja.tm.jrag.ASTNode.jimplify2(ASTNode.java:610)
        at abc.ja.tm.jrag.ASTNode.jimplify2(ASTNode.java:610)
        at abc.ja.tm.jrag.Program.jimplify2(Program.java:954)
        at abc.ja.tm.jrag.Program.doCompileSequence(Program.java:805)
        at abc.ja.tm.CompileSequence.compile(CompileSequence.java:107)
        at abc.ja.tm.CompileSequence.runSequence(CompileSequence.java:100)
        ... 2 more

I also tried to build the latest version of abc (using Apache Ant 1.7) from the code repository through this svn url http://abc.comlab.ox.ac.uk/products/trunk/abc-full, and I keep getting the same error.

I checked through this mailing list archives and I found a previous post talking about a similar error that got fixed before in the svn head (http://abc.comlab.ox.ac.uk/archives/dev/2008-Sep/0011.html). So, my question is: Is the error in that previous post the exact problem I am facing? And if so, is the svn url I mentioned above the correct one to use? Your help would be really appreciated.

I am using JDK1.5.0_19. Please find below the tracematch that I am using:

package abcCompiler;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Vector;
import java.util.List;

public aspect Mine {
    
    public Mine()
    {
        super();
    }
    
    tracematch(){

        sym calledMethod after returning:
            myMethod();

        calledMethod
        {
            // Do nothing for now
        }
    }

    pointcut myMethod(): execution(* *(..)) && !within(ArgumentsAspect);

}

Many thanks,
Soha

_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx
Received on Tue Jul 21 2009 - 09:34:49 BST

This archive was generated by hypermail 2.2.0 : Wed Jul 22 2009 - 11:30:10 BST