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

class org.easymock.internal.ClassMockingData not visible from class com.sun.net.httpserver.HttpExchange$$$EasyMock$1 #559

Open
tpummer opened this issue Apr 11, 2024 · 0 comments

Comments

@tpummer
Copy link

tpummer commented Apr 11, 2024

I've created a minimal showcase, using jdk17 EasyMock 5.2.0 resulting with an error similar to #373 and #515:

Caused by: java.lang.LinkageError: bad field type alias: class org.easymock.internal.ClassMockingData not visible from class com.sun.net.httpserver.HttpExchange$$$EasyMock$1

on mocking com.sun.net.httpserver.HttpExchange

    @Test()
    public void test() {
        EasyMock.mock(com.sun.net.httpserver.HttpExchange.class);
    }

You can find the source here on github under https://github.com/tpummer/EasyMockErrorShowCase
error_without_add_opens.txt contains the log on running mvn clean install
error_add_opens.txt the log on running mvn clean install with --add-opens params
test.txt contians the log running the test in intellij

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant