[libbluray-devel] Use Logger.dumpStack()

hpi1 git at videolan.org
Wed May 3 15:04:44 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr  3 12:00:40 2017 +0300| [d1d370f90264bb128554f87b9e50167fc9b7c262] | committer: hpi1

Use Logger.dumpStack()

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d1d370f90264bb128554f87b9e50167fc9b7c262
---

 src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
index 905bb4a7..0f9256ba 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
@@ -31,11 +31,7 @@ class BDJThreadGroup extends ThreadGroup {
 
         String stack = "";
         if (e != null) {
-            StackTraceElement elems[] = e.getStackTrace();
-            if (elems != null) {
-                for (int i = 0; i < elems.length; i++)
-                    stack += "\n\t" + elems[i].toString();
-            }
+            stack = Logger.dumpStack(e);
         }
 
         if (e instanceof ThreadDeath) {



More information about the libbluray-devel mailing list