summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java2
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/structgen/package-info.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java b/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java
index 2fc0766..45293f8 100644
--- a/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java
+++ b/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java
@@ -249,7 +249,7 @@ public class CStructAnnotationProcessor extends AbstractProcessor {
writer = new FileWriter(configFile);
writer.write("Package "+pakage+"\n");
writer.write("EmitStruct "+structName+"\n");
- if( finalType != structName ) {
+ if( !useJavaName && (finalType != structName) ) {
// We allow renaming the structType to the element's declaredType (FIELD annotation only)
writer.write("RenameJavaType " + struct.name()+" " + declaredType +"\n");
}
diff --git a/src/junit/com/jogamp/gluegen/test/junit/structgen/package-info.java b/src/junit/com/jogamp/gluegen/test/junit/structgen/package-info.java
index d009c5f..5f211c4 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/structgen/package-info.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/structgen/package-info.java
@@ -7,7 +7,7 @@
* </p>
* @see BuildStruct01
*/
-@CStructs({@CStruct(name="RenderingConfig", header="TestStruct01.h"), @CStruct(name="Pixel", header="TestStruct02.h")})
+@CStructs({@CStruct(name="RenderingConfig", jname="RenderingConfig", header="TestStruct01.h"), @CStruct(name="Pixel", jname="Pixel", header="TestStruct02.h")})
package com.jogamp.gluegen.test.junit.structgen;
import com.jogamp.gluegen.structgen.CStructs;