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

From: Eric Bodden <eric.bodden_at_mail.mcgill.ca>
Date: Wed, 22 Jul 2009 12:26:29 +0200

Hi Soha.

I just checked this out and indeed I can confirm this as a bug.
Unfortunately, I am moving between two universities now and I am not
properly set up to fix the problem at the moment. Could you enter this
as a bug into our bugzilla so that I or someone else can fix this in
the near future?

http://abc.comlab.ox.ac.uk/cgi-bin/bugzilla/index.cgi

Thanks,
Eric

2009/7/21 Soha Makady <smakady_at_hotmail.com>:
> 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
>
>
>
>
> ________________________________
> What can you do with the new Windows Live? Find out

-- 
Eric Bodden
Sable Research Group, McGill University
Montréal, Québec, Canada
Received on Wed Jul 22 2009 - 11:26:33 BST

This archive was generated by hypermail 2.2.0 : Wed Jul 22 2009 - 11:40:09 BST