[Soot-list] Help (fwd)
Ondrej Lhotak
olhotak at sable.mcgill.ca
Mon May 16 13:43:59 EDT 2005
A while back, Stephen Cheng contributed a J2ME patch that Feng
committed into Soot (Google soot j2me for details).
At the end of G.java, there's a final field called isJ2ME that is
normally set to false. Setting it to true should do the trick, at least
judging by the comments.
Ondrej
On Sun, May 15, 2005 at 04:57:30PM -0400, Laurie Hendren wrote:
>
>
> +-------------------------------------------------------------+
> | Laurie Hendren, Professor, School of Computer Science |
> | McGill University |
> | 318 McConnell Engineering Building tel: (514) 398-7391 |
> | 3480 University Street fax: (514) 398-3883 |
> | Montreal, Quebec H3A 2A7 hendren at cs.mcgill.ca |
> | CANADA http://www.sable.mcgill.ca/~hendren |
> | http://wwww.sable.mcgill.ca http://aspectbench.org |
> +-------------------------------------------------------------+
>
> ---------- Forwarded message ----------
> Date: Mon, 16 May 2005 00:45:26 +0530 (IST)
> From: Rahul Nagpal <rahul at csa.iisc.ernet.in>
> To: hendren at cs.mcgill.ca
> Subject: Help
>
> Madam,
>
> I am trying to use soot with J2ME CLDC and facing some
> difficulties in doing so. When I checked the soot mailing list
> I came to know about a patch and release I am using (soot version
> 2.2.1) has incorporated that patch.
>
> The problem is when I use J2ME CLDC API libraries in the class-path
> instead of J2SE libraries I get following error while creating call graph
> for a small Hello World class created for J2ME. Though when I use J2SE API
> library it works fine. What can be the possible cause ? Does soot
> supports the J2ME CLDC class library instead if J2SE ?
>
>
> Thanks and Regrads
> Rahul
>
>
> [1]
> Exception in thread "main" java.lang.NullPointerException
> at soot.jimple.toolkits.typing.TypeNode.<init>(TypeNode.java:85)
> at soot.jimple.toolkits.typing.ClassHierarchy$ConstructorChooser.caseRefType(ClassHierarchy.java:238)
> at soot.RefType.apply(RefType.java:128)
> at soot.jimple.toolkits.typing.ClassHierarchy$ConstructorChooser.typeNode(ClassHierarchy.java:231)
> at soot.jimple.toolkits.typing.ClassHierarchy.typeNode(ClassHierarchy.java:127)
> at soot.jimple.toolkits.typing.ClassHierarchy.<init>(ClassHierarchy.java:82)
> at soot.jimple.toolkits.typing.ClassHierarchy.classHierarchy(ClassHierarchy.java:105)
> at soot.jimple.toolkits.typing.TypeResolver.<init>(TypeResolver.java:153)
> at soot.jimple.toolkits.typing.TypeResolver.resolve(TypeResolver.java:176)
> at soot.jimple.toolkits.typing.TypeAssigner.internalTransform(TypeAssigner.java:57)
> at soot.BodyTransformer.transform(BodyTransformer.java:51)
> at soot.Transform.apply(Transform.java:88)
> at soot.JimpleBodyPack.applyPhaseOptions(JimpleBodyPack.java:68)
> at soot.JimpleBodyPack.internalApply(JimpleBodyPack.java:116)
> at soot.Pack.apply(Pack.java:110)
> at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:115)
> at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:79)
> at soot.SootMethod.retrieveActiveBody(SootMethod.java:274)
> at soot.jimple.toolkits.callgraph.CallGraphBuilder.processNewMethod(CallGraphBuilder.java:114)
> at soot.jimple.toolkits.callgraph.CallGraphBuilder.processWorklist(CallGraphBuilder.java:93)
> at soot.jimple.toolkits.callgraph.CallGraphBuilder.build(CallGraphBuilder.java:81)
> at soot.jimple.spark.solver.OnFlyCallGraph.build(OnFlyCallGraph.java:51)
> at soot.jimple.spark.builder.ContextInsensitiveBuilder.build(ContextInsensitiveBuilder.java:75)
> at soot.jimple.spark.SparkTransformer.internalTransform(SparkTransformer.java:64)
> at soot.SceneTransformer.transform(SceneTransformer.java:39)
> at ptolemy.copernicus.c.CallGraphPruner.<init>(CallGraphPruner.java:109)
> at ptolemy.copernicus.c.RequiredFileGenerator._pruneLevel1(RequiredFileGenerator.java:243)
> at ptolemy.copernicus.c.RequiredFileGenerator.init(RequiredFileGenerator.java:152)
> at ptolemy.copernicus.c.JavaToC.convert(JavaToC.java:89)
> at ptolemy.copernicus.c.JavaToC.main(JavaToC.java:186)
> ---------------------------------------------------------------------
> __ __
> / /\ / /\ RAHUL NAGPAL
> / /_/_/ / / Room No. U-77, IISc Hostels,
> /_______/ / /\
> \ ____ \ \/ \ Phone Nos 080-2293-2634/2591 (Hostel)
> \ \/__\ \ /\ \ 080-22932368/468-104 (Compiler Lab)
> \_______\/ / / 080-22932368-115 (CL1)
> /_/ / /_/ / 080-22932368-102 (CL2)
> \_\/ \_\/ 080-22932368-227 (Intel LAB)
> --------------------------------------------------------------------
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://www.sable.mcgill.ca/mailman/listinfo/soot-list
>
More information about the Soot-list
mailing list