summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/JavaEmitter.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-04-19 17:34:04 +0000
committerKenneth Russel <[email protected]>2008-04-19 17:34:04 +0000
commitc047af44ab42520ee1a4d9911d5e3bc72dbf884a (patch)
tree4d51ce92f3a0972b36e1f7af788ee0c30d934ed8 /src/java/com/sun/gluegen/JavaEmitter.java
parentcb0b5d8b93e7ca266707f2256ca4d4a555938ecd (diff)
Fixed Issue 6: unqualified class names in generated java code
Applied and expanded patch from user tck to fully qualify all references to New I/O classes in generated code. Tested by removing Import of java.nio.* from JOGL and JOAL; required modification of the custom Java code for those packages, but otherwise working well. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@73 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src/java/com/sun/gluegen/JavaEmitter.java')
-rw-r--r--src/java/com/sun/gluegen/JavaEmitter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/sun/gluegen/JavaEmitter.java b/src/java/com/sun/gluegen/JavaEmitter.java
index bcda048..48964b0 100644
--- a/src/java/com/sun/gluegen/JavaEmitter.java
+++ b/src/java/com/sun/gluegen/JavaEmitter.java
@@ -821,7 +821,7 @@ public class JavaEmitter implements GlueEmitter {
writer.println(" return create(BufferFactory.newDirectByteBuffer(size()));");
writer.println(" }");
writer.println();
- writer.println(" public static " + containingTypeName + " create(ByteBuffer buf) {");
+ writer.println(" public static " + containingTypeName + " create(java.nio.ByteBuffer buf) {");
writer.println(" if (CPU.is32Bit()) {");
writer.println(" return new " + containingTypeName + "32(buf);");
writer.println(" } else {");
@@ -829,15 +829,15 @@ public class JavaEmitter implements GlueEmitter {
writer.println(" }");
writer.println(" }");
writer.println();
- writer.println(" " + containingTypeName + "(ByteBuffer buf) {");
+ writer.println(" " + containingTypeName + "(java.nio.ByteBuffer buf) {");
writer.println(" accessor = new StructAccessor(buf);");
writer.println(" }");
writer.println();
- writer.println(" public ByteBuffer getBuffer() {");
+ writer.println(" public java.nio.ByteBuffer getBuffer() {");
writer.println(" return accessor.getBuffer();");
writer.println(" }");
} else {
- writer.println(" " + containingTypeName + suffix + "(ByteBuffer buf) {");
+ writer.println(" " + containingTypeName + suffix + "(java.nio.ByteBuffer buf) {");
writer.println(" super(buf);");
writer.println(" }");
writer.println();