< prev index next >
src/solaris/classes/sun/awt/X11/generator/WrapperGenerator.java
Print this page
rev 1566 : 6680988: KeyEvent is still missing VK values for many keyboards
Summary: 2 new methods and some fields added to KeyEvent, plus hash of constants introduced
Reviewed-by: art
rev 1571 : 8010297: Missing isLoggable() checks in logging code
Summary: Add isLoggable() checks
Reviewed-by: anthony, mchung, serb
Contributed-by: Laurent Bourges <bourges.laurent@gmail.com>
@@ -803,17 +803,21 @@
}
i++;
}
}
if (s_size_32 != null && !s_size_32.equals(Integer.toString(acc_size_32))) {
+ if (log.isLoggable(Level.FINE)) {
log.fine("32 bits: The size of the structure " + stp.getName() + " " + s_size_32 +
" is not equal to the accumulated size " +acc_size_32 + " of the fields");
+ }
} else if (s_size_64 != null && !s_size_64.equals(Integer.toString(acc_size_64))) {
+ if (log.isLoggable(Level.FINE)) {
log.fine("64 bits: The size of the structure " + stp.getName() + " " +s_size_64+
" is not equal to the accumulated size " +acc_size_64+" of the fields");
}
}
+ }
public void writeWrapperSubclass(StructType stp, PrintWriter pw, boolean wide) {
pw.println("class " + stp.getJavaClassName() + "AccessorImpl" + " extends " + stp.getJavaClassName() + "Accessor {");
@@ -1136,10 +1140,11 @@
PrintWriter pw = new PrintWriter(fs);
pw.println("/* This file is an automatically generated file, please do not edit this file, modify the XlibParser.java file instead !*/\n" );
pw.println("#include <X11/Xlib.h>\n#include <X11/Xutil.h>\n#include <X11/Xos.h>\n#include <X11/Xatom.h>\n#include <stdio.h>\n");
pw.println("#include <X11/extensions/Xdbe.h>");
+ pw.println("#include <X11/XKBlib.h>");
pw.println("#include \"awt_p.h\"");
pw.println("#include \"color.h\"");
pw.println("#include \"colordata.h\"");
pw.println("\ntypedef struct\n");
pw.println("{\n");
< prev index next >