[Soot-list] Jasmin Warning Syntax error Truncated class file

Jian Xu fightmyway at gmail.com
Mon Mar 30 12:50:05 EDT 2009


Hi Saswat:
Thank you for your help. Fisrt, I use
Options.v().set_no_output_inner_classes_attribute(true); to prevent that
error, because in my project, I needn't the inner_class_attr. Now I follow
you and soot work well. I do as you said, comment //bclass.addTag(new
DeprecatedTag()); and rebuild soot for my project. Thanks again.

On Mon, Mar 30, 2009 at 10:16 AM, Saswat Anand <saswat at gatech.edu> wrote:

> Hi Jian Xu,
>
> I was getting exactly the same error when processing two classes
> of 1.3 JRE (namely java.security.IdentityScope and java.security.Signer).
> Apparently, Jasmin has problems with ".deprecated" tag. In my case,
> error was caused due to DeprecatedTag's that were attached to
> these two classes. So commenting out the following line (line
> 380 in soot-2.3.0) in soot.coffi.Util class served as an workaround
> this problem.
>
> bclass.addTag(new DeprecatedTag());
>
> Hope this helps.
>
> Saswat
>
> ----- Original Message -----
> From: "Jian Xu" <fightmyway at gmail.com>
> To: soot-list at sable.mcgill.ca
> Sent: Thursday, March 26, 2009 2:03:07 PM GMT -05:00 US/Canada Eastern
> Subject: [Soot-list] Jasmin Warning Syntax error Truncated class file
>
> Hi all:
> I use soot to process ant source code. Just use soot.Main  <all ant
> classes>.
> It seems most transform actions well done but there are 8 class in all the
> ant classes fail
>
> The information is like the following:
>
> Jasmin:8: Warning - Syntax error.
> .inner_class_attr
>                  ^
> Jasmin:8: Error - Couldn't repair and continue parse.
> .inner_class_attr
>                  ^
> Jasmin: Found 2 errors
>
> And when I use JUnit testcase of ant to test the file, it say
> "ClassFormatError: Truncated class file". I think it is because the wrong
> transform.
>
> Any helps will be appreciate!
>
> regards
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Jian Xu
Department of Computer Science & Software Engineering
The Zhe Jiang University
Yu Quan Campus
Hang Zhou, Zhe Jiang, China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20090331/f43e2404/attachment.html 


More information about the Soot-list mailing list