harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r771024 - /harmony/enhanced/classlib/trunk/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
Date Sun, 03 May 2009 05:05:18 GMT
Author: ndbeyer
Date: Sun May  3 05:05:18 2009
New Revision: 771024

URL: http://svn.apache.org/viewvc?rev=771024&view=rev
Log:
handle native method indicator

Modified:
    harmony/enhanced/classlib/trunk/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java?rev=771024&r1=771023&r2=771024&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
Sun May  3 05:05:18 2009
@@ -188,6 +188,10 @@
             int lineNumberVal = ((Integer) attributeVals[3]).intValue();
             boolean nativeMethodVal = ((Boolean) attributeVals[4])
                     .booleanValue();
+            // if native method indicator is true, modify lineNumberVal to magic value
+            if(nativeMethodVal) {
+                lineNumberVal = -2;
+            }
             StackTraceElement element = new StackTraceElement(classNameVal,
                     methodNameVal, fileNameVal, lineNumberVal);
             result[i] = element;



Mime
View raw message