diff options
author | Xerxes Rånby <[email protected]> | 2012-08-07 01:21:34 +0000 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2012-08-07 01:21:34 +0000 |
commit | 01531a73c2d3afcef06d9aa0e91161a6561b6a4a (patch) | |
tree | 034941b2b594cc9a9c54e2220a95ae65138f1722 /src/java/com | |
parent | 09050d80ed163f1468b8048cfd037772de316eee (diff) | |
parent | 23ec994d65329f239f17322ad23510a77e709534 (diff) |
Merge remote-tracking branch 'github-sgothel/master'
Diffstat (limited to 'src/java/com')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaEmitter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java index 99a5796..df6f00a 100644 --- a/src/java/com/jogamp/gluegen/JavaEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaEmitter.java @@ -462,8 +462,6 @@ public class JavaEmitter implements GlueEmitter { protected void generatePublicEmitters(MethodBinding binding, List<FunctionEmitter> allEmitters, boolean signatureOnly) { - PrintWriter writer = ((signatureOnly || cfg.allStatic()) ? javaWriter() : javaImplWriter()); - if (cfg.manuallyImplement(binding.getName()) && !signatureOnly) { // We only generate signatures for manually-implemented methods; // user provides the implementation @@ -476,6 +474,8 @@ public class JavaEmitter implements GlueEmitter { return; } + final PrintWriter writer = ((signatureOnly || cfg.allStatic()) ? javaWriter() : javaImplWriter()); + // It's possible we may not need a body even if signatureOnly is // set to false; for example, if the routine doesn't take any // arrays or buffers as arguments |