java.lang.SecurityException: AWTEvent is missing AccessControlContext
It happens when running the following piece of code with JMockit 1.12 . However, when I use JMockit 1.9 , it works just fine. My conclusions after I debugged the code are that AWTEvent doesn't get mocked, which invokes code that is not supposed to be invoked.
Environment Win7 64 bit
JDK 1.7.0_51 32 bit