summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java b/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java
index 497e9ff..2fc0766 100644
--- a/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java
+++ b/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java
@@ -178,7 +178,10 @@ public class CStructAnnotationProcessor extends AbstractProcessor {
System.err.println("CStruct.0: element: "+element+", .simpleName "+element.getSimpleName());
System.err.print("CStruct.0: isPackageOrType "+isPackageOrType+", enclElement: "+enclElement);
if( !isPackageOrType ) {
- System.err.println(", .simpleName "+enclElement.getSimpleName()+", .package "+eltUtils.getPackageOf(enclElement).toString());
+ if(!enclElement.toString().equals("unnamed module"))
+ System.err.println(", .simpleName "+enclElement.getSimpleName()+", .package "+eltUtils.getPackageOf(enclElement).toString());
+ else
+ System.err.println(", .simpleName "+enclElement.getSimpleName()+", .package <unnamed modules have no package>");
} else {
System.err.println("");
}