From c71d87ed71eea0774da27bdd7c3b984519736703 Mon Sep 17 00:00:00 2001 From: Kai Boernert Date: Sat, 9 Jul 2016 12:06:39 +0200 Subject: [PATCH] Extracted an Allocator interface for DirectByteBuffers Signed-off-by: Kai Boernert --- jme3-core/src/main/java/com/jme3/util/BufferUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/util/BufferUtils.java b/jme3-core/src/main/java/com/jme3/util/BufferUtils.java index b16dda3c0..c71fa06d9 100644 --- a/jme3-core/src/main/java/com/jme3/util/BufferUtils.java +++ b/jme3-core/src/main/java/com/jme3/util/BufferUtils.java @@ -55,6 +55,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; +import org.mockito.internal.stubbing.answers.ThrowsException; + /** * BufferUtils is a helper class for generating nio buffers from * jME data classes such as Vectors and ColorRGBA. @@ -75,7 +77,7 @@ public final class BufferUtils { static { try { allocator = new ReflectionAllocator(); - } catch (InaccessibleObjectException t) { + } catch (Throwable t) { t.printStackTrace(); System.err.println("Error using ReflectionAllocator"); }