diff -r dabb36173c63 -r 6118072811e5 src/share/classes/com/sun/tools/javac/comp/Attr.java --- a/src/share/classes/com/sun/tools/javac/comp/Attr.java Thu Feb 21 12:23:27 2013 -0800 +++ b/src/share/classes/com/sun/tools/javac/comp/Attr.java Thu Feb 21 17:49:56 2013 -0800 @@ -3412,6 +3412,7 @@ if (sym.name != names.init) { chk.checkDeprecated(tree.pos(), env.info.scope.owner, sym); chk.checkSunAPI(tree.pos(), sym); + chk.checkProfile(tree.pos(), sym); } // Test (3): if symbol is a variable, check that its type and