--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java Thu Feb 03 09:37:28 2011 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java Thu Feb 03 09:38:19 2011 +0000
@@ -2374,7 +2374,6 @@
int pkind) {
DiagnosticPosition pos = tree.pos();
Name name = tree.name;
-
switch (site.tag) {
case PACKAGE:
return rs.access(
@@ -3186,7 +3185,7 @@
if (sym == null ||
sym.kind != VAR ||
((VarSymbol) sym).getConstValue() == null)
- log.error(l.head.pos(), "icls.cant.have.static.decl", sym.location());
+ log.error(l.head.pos(), "icls.cant.have.static.decl", c);
}
}