-
-
Notifications
You must be signed in to change notification settings - Fork 369
Bug: cannot Mock Class With Package-Private Parent #119
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
Comments
Hm. I checked it in a test and it is creating mockk
|
I see you are using JDK version 1.8.0_45, which is pretty old. Just a guess, but maybe you can try use 1.8.0_161 which I use right now |
This issue still reproduces for me with JDK 1.8.0_181 and mockk 1.8.6. Are the tests you ran to confirm available? |
Probably it was not reproduced well. I didnt commit this test |
Anything more I can do to help? This issue is currently blocking my adoption of what is an otherwise fantastic mocking framework. |
I returned back to reproduction and still not able to do it. In next release there will be a possibility to dump class files before transformation by specifying a directory in a system property to put classes in. Please do it and send to me. Thanks |
Version 1.8.7 released. Please capture class dump as described above and send it to me. Thanks |
Thanks for adding the the class dump. Hopefully it will help get to the bottom of this issue. I'm still able to reproduce with 1.8.7 using the following code: import com.datastax.driver.core.UDTValue
import io.mockk.mockk
fun main(args: Array<String>) {
mockk<UDTValue>(relaxed = true)
} I've attached the contents of the class dump: dump.zip. |
Can you please provide a version of Apache DataStax Driver? I need to fetch original UDTValue from it. |
It's version 3.3.0.
…On Tue, Sep 4, 2018 at 10:44 PM Oleksiy Pylypenko ***@***.***> wrote:
Can you please provide a version of Apache DataStax Driver? I need to
fetch original UDTValue from it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#119 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJXHeAi3m_nXxsuMk5Zm5H1RiSsCPBUiks5uX2SqgaJpZM4VjI90>
.
|
We’re you able to reproduce this with the latest sample I provided? |
Not yet |
Any update on this issue? |
I have spent almost all my weekend to fix few issues, but didnt touch this one. Sorry |
ok, so I reproduced, minimized it and submitted this issue to ByteBuddy |
Adding link raphw/byte-buddy#561 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are sure that this issue is important and should not be marked as |
As mentioned in raphw/byte-buddy#561
Reopening to try to fix it |
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
I expect the mock to be created successfully
Current Behavior
An exception is thrown when mocking class.
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
Please include any relevant log snippets or files here.
Stack trace
Minimal reproducible code (the gist of this issue)
The text was updated successfully, but these errors were encountered: