<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi there,</p>
<p><br>
</p>
<p>I'm relatively new to Soot and am currently implementing a taint analysis on individual .java files using Soot and Heros. </p>
<p>Now that the tainting is working, I would also like to display the corresponding source code line numbers of the tainted values. </p>
<p>After a bit of research, I found that calling <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
</span><span style="color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;">unit.getJavaSourceStartLineNumber()</span> is
the preferred way of doing this. However, when I try calling the method on either a unit or SootMethod, it says that the method is not defined for the type. I feel like I'm under some basic misconception of how to use the method properly and would be very
grateful if somebody could clear this up for me. <span style="color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;"></span></p>
<p>I have found several questions relating to <span style="color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;">
unit.getJavaSourceStartLineNumber()</span> but none of them had the problem of not finding the method in the first place.</p>
<p>I'm using the latest nightly-build soot-trunk.jar in eclipse.</p>
<p><br>
</p>
<p>Thanks in advance!</p>
</div>
</body>
</html>