Re: [abc-users] return stmt

From: Eric Bodden <eric.bodden_at_mail.mcgill.ca>
Date: Mon, 4 Aug 2008 13:10:41 -0400

> Any clues??
Not really.

It would help to have the body printed at that point. Can you insert...

System.err.println(b);

... right before the line where the exception is thrown? (line 268)

Eric

2008/8/3 Amjad Nusayr <anusayr_at_cs.nmsu.edu>:
> Hi
> I was missing around with AOP using plain abc; without any extensions and I
> got an exception with I tried to compile my files, I used "abc -debug
> doValidate -argfile files.lst" and got this...
>
> Exception in thread "main" polyglot.util.InternalCompilerError: unhandled
> except
> ving/optimisation
> at abc.main.CompileSequence.runSequence(CompileSequence.java:142)
> at abc.main.Main.run(Main.java:406)
> at abc.main.Main.main(Main.java:144)
> Caused by: polyglot.util.InternalCompilerError: Last stmt should be
> ReturnStmt o
> mt
> at abc.soot.util.Restructure.restructureReturn(Restructure.java:268)
> at
> abc.weaving.weaver.ShadowPointsSetter.restructureBody(ShadowPointsSet
> at
> abc.weaving.weaver.ShadowPointsSetter.insertExecutionSP(ShadowPointsS
> )
> at
> abc.weaving.weaver.ShadowPointsSetter.setShadowPointsPass1(ShadowPoin
> 105)
> at
> abc.bbs.weaving.weaver.ShadowPointsSetter.setShadowPointsPass1(Shadow
> ava:61)
> at abc.bbs.weaving.weaver.Weaver.inlineConstructors(Weaver.java:43)
> at abc.weaving.weaver.Weaver.weave(Weaver.java:185)
> at abc.main.CompileSequence.weave(CompileSequence.java:496)
> at abc.main.CompileSequence.runSequence(CompileSequence.java:115)
> ... 2 more
>
>
> Any clues??
>
> Amjad
>
>

-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
Received on Mon Aug 04 2008 - 18:10:45 BST

This archive was generated by hypermail 2.2.0 : Mon Aug 04 2008 - 20:50:11 BST