I'm checking this in.

This adds 'volatile' to the CNI header file generated by javah, as
needed.

Tom

2006-09-11  Tom Tromey  <[EMAIL PROTECTED]>

        * tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print
        "volatile" when needed.

Index: tools/gnu/classpath/tools/javah/FieldHelper.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/tools/gnu/classpath/tools/javah/FieldHelper.java,v
retrieving revision 1.1
diff -u -r1.1 FieldHelper.java
--- tools/gnu/classpath/tools/javah/FieldHelper.java    28 Jul 2006 15:22:29 
-0000      1.1
+++ tools/gnu/classpath/tools/javah/FieldHelper.java    11 Sep 2006 21:44:01 
-0000
@@ -52,6 +52,8 @@
     out.print("  ");
     if (Modifier.isStatic(field.access))
       out.print("static ");
+    if (Modifier.isVolatile(field.access))
+      out.print("volatile ");
     if ((field.value instanceof Integer) || (field.value instanceof Long))
       out.print("const ");
     out.print(Type.getType(field.desc));

Reply via email to