Please see #7021001 for the description of the problem.
It was partially fixed.
Unfortunately the suggested fix for 7021001 does not cover all the problematic methods.
The following methods are still not fixed in JDK7 b140
http://download.java.net/jdk7/docs/api/java/awt/Toolkit.html#getLockingKeyState%28int%29
http://download.java.net/jdk7/docs/api/java/awt/Toolkit.html#setLockingKeyState%28int,%20boolean%29
The following tests still fail
api/java_awt/Toolkit/indexTGF.html#HeadlessExceptions[setLockingKeyState_defaultMethodImpl]
api/java_awt/Toolkit/indexTGF.html#HeadlessExceptions[getLockingKeyState_defaultMethodImpl]
Please see #7021001 for code sample