summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index f5a5bb647f2..eca80178987 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -2359,8 +2359,8 @@ layout_class_method (tree this_class, tree super_class,
&& ! flag_indirect_dispatch
&& !CLASS_FROM_SOURCE_P (this_class)
&& ! DECL_ARTIFICIAL (super_method))
- error ("%Jnon-static method '%D' overrides static method",
- method_decl, method_decl);
+ error ("non-static method %q+D overrides static method",
+ method_decl);
}
else if (this_class == object_type_node
&& (METHOD_FINAL (method_decl)