changeset 8054:957060db6fa5 8u40-b06

Revert fix for RT-37414 JavaFX x86egl cross built from a 64 bits Linux gives NumberFormatException as it causes 32 bit touch screen systems to be completely broken (RT-38660)
author Lisa.Selle@oracle.com
date Mon, 15 Sep 2014 11:37:20 -0400
parents f4e58490d406
children c351ce7d78c4 dc7dc0fa856b c5108c2b0bb9
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	Fri Sep 12 17:15:09 2014 -0700
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/SysFS.java	Mon Sep 15 11:37:20 2014 -0400
@@ -32,7 +32,7 @@
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
-import java.nio.LongBuffer;
+import java.nio.IntBuffer;
 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 * 8];
+                byte[] b = new byte[elements.length * 4];
                 ByteBuffer bb = ByteBuffer.wrap(b);
                 bb.order(ByteOrder.LITTLE_ENDIAN);
-                LongBuffer lb = bb.asLongBuffer();
+                IntBuffer ib = bb.asIntBuffer();
                 for (int j = elements.length - 1; j >= 0; j--) {
-                    lb.put(Long.parseUnsignedLong(elements[j], 16));
+                    ib.put(Integer.parseUnsignedInt(elements[j], 16));
                 }
                 capsMap.put(capsFiles[i].getName(), BitSet.valueOf(b));
             } catch (IOException | RuntimeException e) {