changeset 8036:2abfc95e5ffd

RT-37414 JavaFX x86egl cross built from a 64 bits Linux gives NumberFormatException
author Daniel Blaukopf <daniel.blaukopf@oracle.com>
date Thu, 11 Sep 2014 15:17:27 +0300
parents 4b422b9d2145
children f0e4f63f83c1
files modules/graphics/src/main/java/com/sun/glass/ui/monocle/SysFS.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/SysFS.java	Thu Sep 11 13:57:13 2014 +0200
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/SysFS.java	Thu Sep 11 15:17:27 2014 +0300
@@ -32,7 +32,7 @@
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
-import java.nio.IntBuffer;
+import java.nio.LongBuffer;
 import java.util.BitSet;
 import java.util.HashMap;
 import java.util.Map;
@@ -61,12 +61,12 @@
                 if (elements == null) {
                     continue;
                 }
-                byte[] b = new byte[elements.length * 4];
+                byte[] b = new byte[elements.length * 8];
                 ByteBuffer bb = ByteBuffer.wrap(b);
                 bb.order(ByteOrder.LITTLE_ENDIAN);
-                IntBuffer ib = bb.asIntBuffer();
+                LongBuffer lb = bb.asLongBuffer();
                 for (int j = elements.length - 1; j >= 0; j--) {
-                    ib.put(Integer.parseUnsignedInt(elements[j], 16));
+                    lb.put(Long.parseUnsignedLong(elements[j], 16));
                 }
                 capsMap.put(capsFiles[i].getName(), BitSet.valueOf(b));
             } catch (IOException | RuntimeException e) {