[libbluray-devel] Fix J2ME build

hpi1 git at videolan.org
Wed Mar 19 15:55:07 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Mar 19 16:44:21 2014 +0200| [d5c45b4ee38368f3a3a196b3adf7093c690cd04b] | committer: hpi1

Fix J2ME build

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

 src/libbluray/bdj/java/org/videolan/BDJClassLoader.java |    2 ++
 src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java b/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
index 361c231..96eecde 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJClassLoader.java
@@ -131,10 +131,12 @@ public class BDJClassLoader extends URLClassLoader {
         return super.getResource(name);
     }
 
+    /* final in J2ME
     public Enumeration getResources(String name) throws IOException {
         name = name.replace('\\', '/');
         return super.getResources(name);
     }
+    */
 
     public URL findResource(String name) {
         name = name.replace('\\', '/');
diff --git a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
index 1226446..926dabc 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
@@ -100,7 +100,9 @@ public class BDJThreadGroup extends ThreadGroup {
             if (threads[i] == null)
                 continue;
             logger.info("    " + threads[i]);
+            /* no getState() in J2ME
             logger.info("   state " + threads[i].getState().toString());
+            */
             logger.info("    at " + PortingHelper.dumpStack(threads[i]));
         }
     }



More information about the libbluray-devel mailing list