--- old/src/share/classes/com/sun/tools/javac/comp/Attr.java 2013-01-18 02:48:24.734686043 -0500 +++ new/src/share/classes/com/sun/tools/javac/comp/Attr.java 2013-01-18 02:48:23.858637116 -0500 @@ -3274,6 +3274,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