diff options
author | Tom Tromey <tromey@redhat.com> | 2006-09-11 21:58:32 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2006-09-11 21:58:32 +0000 |
commit | 79dcfeef5d037eb04cf51b87fe136a1fdd70baef (patch) | |
tree | d3c114d015bf50f15b10f8af728b06e4e5939d00 /tools/gnu/classpath/tools | |
parent | 48efa0eeab92c05711fe7760e4180b8e57039803 (diff) | |
download | classpath-79dcfeef5d037eb04cf51b87fe136a1fdd70baef.tar.gz |
* tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print
"volatile" when needed.
Diffstat (limited to 'tools/gnu/classpath/tools')
-rw-r--r-- | tools/gnu/classpath/tools/javah/FieldHelper.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gnu/classpath/tools/javah/FieldHelper.java b/tools/gnu/classpath/tools/javah/FieldHelper.java index ecc82e3c1..a9385e04d 100644 --- a/tools/gnu/classpath/tools/javah/FieldHelper.java +++ b/tools/gnu/classpath/tools/javah/FieldHelper.java @@ -52,6 +52,8 @@ public class FieldHelper 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)); |