<div dir="ltr"><div>Hi Steven,<br><br></div>In LibraryCalssPatcher.patchThreadImplementation() you have the following code:<span style="background-color:rgb(228,228,255)"><br><br></span><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Courier New";font-size:9.6pt">SootClass sc = Scene.<span style="font-style:italic">v</span>().getSootClassUnsafe(<span style="color:rgb(0,128,0);font-weight:bold">"java.lang.Thread"</span>);</pre>...<br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Courier New";font-size:9.6pt"><span style="color:rgb(0,0,128);font-weight:bold">while </span>((fldTarget = sc.getFieldByNameUnsafe(<span style="color:rgb(0,128,0);font-weight:bold">"target" </span>+ fieldIdx)) != <span style="color:rgb(0,0,128);font-weight:bold">null</span>)<br> fieldIdx++;<br>fldTarget = <span style="color:rgb(0,0,128);font-weight:bold">new </span>SootField(<span style="color:rgb(0,128,0);font-weight:bold">"target" </span>+ fieldIdx, runnable.getType());</pre><div><div><br></div><div>Here you create a field with name "thread+<some number>" inside Thread. Why don't you name it simply "thread", as it is in JDK?<br><br></div><div>thanks,<br></div><div>-- <br><div><div dir="ltr">Denis<br><br></div></div>
</div></div></div>