diff options
author | Sven Gothel <[email protected]> | 2011-09-03 05:36:12 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-03 05:36:12 +0200 |
commit | cb199004a35ee04d4727f466112adcc65ed7d0d4 (patch) | |
tree | c420ba18e5d0dd3933d38c822b109823f2ffd59e /src/java/com/jogamp/gluegen/JavaEmitter.java | |
parent | cfb9e118e020707842e6b5136b07f5ab149540c1 (diff) |
Fix PCPP/DumpCPP: Avoid NPE ; More descriptive exception in case of non integer opaque in struct
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaEmitter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java index 18cb5b1..c7c6cc8 100644 --- a/src/java/com/jogamp/gluegen/JavaEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaEmitter.java @@ -1390,7 +1390,7 @@ public class JavaEmitter implements GlueEmitter { Class<?> c = javaType.getJavaClass(); if (!isIntegerType(c)) { // FIXME - throw new RuntimeException("Can't yet handle opaque definitions of structs' fields to non-integer types (byte, short, int, long, etc.)"); + throw new RuntimeException("Can't yet handle opaque definitions of structs' fields to non-integer types (byte, short, int, long, etc.): type: "+fieldType+", javaType "+javaType+", javaClass "+c); } switch ((int) fieldType.getSize(curMachDesc)) { case 1: return "byte"; |