<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hello,</p>
<p>I have 2 functions in different Java classes which are almost identical in source code.</p>
<p><img src="cid:part1.27055567.B0C6A74C@uni-jena.de" alt="" class="" width="1404" height="441"><br>
</p>
<p>I have now compiled the two classes myself and created the control flow graph.
<br>
It is about the code snippet in which the GdxRuntimeException is thrown. In the upper code snippet the sequence of nodes is as follows:</p>
<p>cond($r3!=null)<br>
assign($r4=new.com_badlogic_gdx_utils_GdxRuntimeException)<br>
<font color="#080203">invoke($r4.com_badlogic_gdx_utils_GdxRuntimeException.init("InstanceBufferObjectrequiresadevicerunningwithGLES3.0compatibilty"))<br>
throw($r4)</font><br>
<br>
In the lower code snippet, the sequence of nodes is as follows:</p>
<p>cond($r3!=null)<br>
assign(r8=new.com_badlogic_gdx_utils_GdxRuntimeException)<br>
invoke(r8.com_badlogic_gdx_utils_GdxRuntimeException.init("InstanceBufferObjectrequiresadevicerunningwithGLES3.0compatibilty"))<br>
<font color="#d00821">assign(r9=(java_lang_Throwable).r8)</font><br>
throw(r9)</p>
<p><br>
Why is the cast (marked red) performed in the lower function but not in the upper function?<br>
Is there a setting option within Soot for this?</p>
<p>With kind regards<br>
André<br>
<br>
</p>
</body>
</html>