diff options
Diffstat (limited to 'gcc/java/check-init.c')
-rw-r--r-- | gcc/java/check-init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c index 82b14b5..c2272a8 100644 --- a/gcc/java/check-init.c +++ b/gcc/java/check-init.c @@ -977,7 +977,8 @@ check_for_initialization (tree body, tree mdecl) if (index >= 0 && ! ASSIGNED_P (before, index)) { if (! is_finit_method) - error_with_decl (decl, "final field '%s' may not have been initialized"); + error ("%Hfinal field '%D' may not have been initialized", + &DECL_SOURCE_LOCATION (decl), decl); } else if (is_finit_method) DECL_FIELD_FINAL_IUD (decl) = 1; |