소스 검색

Extracted an Allocator interface for DirectByteBuffers

Signed-off-by: Kai Boernert <[email protected]>
Kai Boernert 9 년 전
부모
커밋
c71d87ed71
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      jme3-core/src/main/java/com/jme3/util/BufferUtils.java

+ 3 - 1
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;
+
 /**
  * <code>BufferUtils</code> 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");
 		}