[Soot-list] Problem with classpath / J2ME

Philippe Laporte philippel at bluestreaktech.com
Fri May 25 10:02:37 EDT 2007


Hi,
   My experience has been that commenting out those lines gave a SOOT that was still able to process our 750 KB J2ME-CLDC app (we are doing a Flash player, including an ActionScript VM :-)) and produce a jar that ran just as well as before.

I'm not familiar with the SOOT code these days. I'm just doing my best to push these issues forward.

Thanks,
Philippe Laporte


-----Original Message-----
From: eric.bodden at googlemail.com [mailto:eric.bodden at googlemail.com] On Behalf Of Eric Bodden
Sent: 24 mai 2007 11:51
To: Philippe Laporte
Cc: Marco Kaufmann; soot-list at sable.mcgill.ca
Subject: Re: [Soot-list] Problem with classpath / J2ME

Hmmm, I am wondering what exception might be thrown instead. I can
guard the line

resolveClassErrorSet.add(AnySubType.v(Scene.v().getRefType("java.lang.ClassFormatError")));

with the flag but I am not 100% sure that this gives the correct
semantics. (The line declares that ClassFormatError and any subtype
might be thrown when a class is loaded.)

Any opinions on that?

Eric

On 24/05/07, Philippe Laporte <philippel at bluestreaktech.com> wrote:
>
> Sorry for the top replies, I'm stuck with Outlook and I don't have much patience with it :-)
>
> There indeed is none:
>
> http://java.sun.com/javame/reference/apis/jsr139/
>
>
> -----Original Message-----
> From: soot-list-bounces at sable.mcgill.ca [mailto:soot-list-bounces at sable.mcgill.ca] On Behalf Of Eric Bodden
> Sent: 24 mai 2007 10:40
> To: Marco Kaufmann
> Cc: soot-list at sable.mcgill.ca
> Subject: Re: [Soot-list] Problem with classpath / J2ME
>
> On 24/05/07, Marco Kaufmann <marco5327 at yahoo.de> wrote:
> > There was still one minor problem, namely line 239:
> >
> > resolveClassErrorSet.add(AnySubType.v(Scene.v().getRefType("java.lang.ClassFormatError")));
> >
> > in soot.toolkits.exceptions.ThrowableSet throwed a
> > NullPointerException.
> > I just outcommented this line and it works, but I hope this won't have
> > unwanted side effects?
>
> Hmm, that's strange. So is there no class java.lang.ClassFormatError
> in J2ME? I would think that there is one.
>
> Eric
>
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>


-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list