From 93121714758f89a394993f0740c6929f48fb887b Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Wed, 26 Dec 2018 11:04:16 -0600 Subject: Fixed CStruct annotation processor to not use dummy Java variable types When annotations were placed on dummy Java variables, the annotation processor was emitting a RenameJavaType directive into the gluegen config file that caused the emitted file to be named boolean.java instead of RenderingConfig.java or Pixel.java. Turned off this behavior when jname is given in the @CStruct annotation. I'm uncertain how much this processor is even used, since I can't find any occurrences of @CStruct outside the test code for it in gluegen. --- src/junit/com/jogamp/gluegen/test/junit/structgen/package-info.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/junit/com/jogamp') 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 @@ *

* @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; -- cgit v1.2.3