Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UISpec4J error on EDT thread while passing mocked object #564

Closed
Hirak1990 opened this issue Nov 23, 2018 · 0 comments
Closed

UISpec4J error on EDT thread while passing mocked object #564

Hirak1990 opened this issue Nov 23, 2018 · 0 comments
Assignees
Labels

Comments

@Hirak1990
Copy link

@Hirak1990 Hirak1990 commented Nov 23, 2018

Please provide the following information:

  • Version of JMockit that was used:
    1.43
  • Description of the problem:
    We upgraded to latest JMockit and started getting error on UISpec4J tests where we used WindowsInterceptor and passed mocked object.

if (calledFromSpecialThread()) {
return proceedIntoRealImplementationOrGetDefaultReturnType(mock, mockAccess, mockDesc, genericSignature);
}

Looks like the 263 issue introduced a check for EventDispatchThread and system classes. But UISpec4J uses this thread.
Can we enable a switch (a sysproperty) for this check? Which we can disable when running UISpec4J

@Hirak1990 Hirak1990 changed the title UISpec4J error on UISpec4J error on EDT thread while passing mocked object Nov 23, 2018
@rliesenfeld rliesenfeld self-assigned this Nov 25, 2018
@jmockit jmockit locked and limited conversation to collaborators Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.