summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2007-01-26 23:01:51 +0000
committerTom Tromey <tromey@redhat.com>2007-01-26 23:01:51 +0000
commit82809f3188a7316b076a393d15d2ada0268ffa20 (patch)
tree6c3a0fa20f732a14e7b0441b4f5a2f783ed2bd58 /tools
parent8b83f7e509b57379e327b1f134209f172da0b7c7 (diff)
downloadclasspath-82809f3188a7316b076a393d15d2ada0268ffa20.tar.gz
* tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print
'volatile' after field type.
Diffstat (limited to 'tools')
-rw-r--r--tools/gnu/classpath/tools/javah/FieldHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gnu/classpath/tools/javah/FieldHelper.java b/tools/gnu/classpath/tools/javah/FieldHelper.java
index a9385e04d..f1c369af2 100644
--- a/tools/gnu/classpath/tools/javah/FieldHelper.java
+++ b/tools/gnu/classpath/tools/javah/FieldHelper.java
@@ -1,5 +1,5 @@
/* FieldHelper.java - field helper methods for CNI
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -52,12 +52,12 @@ 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));
out.print(" ");
+ if (Modifier.isVolatile(field.access))
+ out.print("volatile ");
boolean result = false;
if (superType != null && ! Modifier.isStatic(field.access))
{