diff -r ce6175cfe11e -r 02e6e7dd1a64 src/share/classes/com/sun/tools/javac/comp/Attr.java --- a/src/share/classes/com/sun/tools/javac/comp/Attr.java Mon Jan 24 15:44:51 2011 +0000 +++ b/src/share/classes/com/sun/tools/javac/comp/Attr.java Mon Jan 24 15:45:06 2011 +0000 @@ -3156,7 +3156,7 @@ if (sym == null || sym.kind != VAR || ((VarSymbol) sym).getConstValue() == null) - log.error(l.head.pos(), "icls.cant.have.static.decl"); + log.error(l.head.pos(), "icls.cant.have.static.decl", sym.location()); } }