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
mockit.internal.ClassFile$NotFoundException #71
Comments
How would I reproduce that exception? Can you show an example test? |
The thing is I cannot recreate the failure in a sample case. I was hoping on you giving me an advice on when one would get this problem so I can fix it. Do you think this could be JMockit bug or rather my own code issue ? |
I don't know. |
I found a way to reproduce this bug. Maybe I can send you a maven project that exposed this bug ? |
Yes, paste the source files here if possible, or attach a zip file to a message in the JMockit Users group (https://groups.google.com/forum/#!forum/jmockit-users). |
Thanks, the sample test does reproduce the problem. |
Did you see the other bug that happens with 1.11 ? |
Hi there,
I am facing the following error when I try to mock an abstract class with JMockit 1.12. With JMockit 1.11 it works fine.
Enviroment :
OS Win7 64 bit
JDK 1.7.0_51 32 bit
JMockit 1.12
mockit.internal.ClassFile$NotFoundException: Unable to find class file for my.package.$Subclass_BaseWindow
The mockUp instantiation looks like :
new MockUp < BaseWindow > () {
// override stuff here
};
Here is the entire stack trace
mockit.internal.ClassFile$NotFoundException: Unable to find class file for my.package.$Subclass_BaseWindow
at mockit.internal.ClassFile.verifyClassFileFound(ClassFile.java:35)
at mockit.internal.ClassFile.readClassFromClasspath(ClassFile.java:101)
at mockit.internal.ClassFile.readFromFile(ClassFile.java:144)
at mockit.internal.ClassFile.createReaderFromLastRedefinitionIfAny(ClassFile.java:118)
at mockit.internal.mockups.MockClassSetup.createClassReaderForRealClass(MockClassSetup.java:135)
at mockit.internal.mockups.MockClassSetup.modifyRealClass(MockClassSetup.java:113)
at mockit.internal.mockups.MockClassSetup.redefineMethodsInClassHierarchy(MockClassSetup.java:90)
at mockit.internal.mockups.MockClassSetup.redefineMethods(MockClassSetup.java:78)
at mockit.MockUp.redefineMethods(MockUp.java:253)
at mockit.MockUp.redefineClassOrImplementInterface(MockUp.java:223)
at mockit.MockUp.(MockUp.java:134)
The text was updated successfully, but these errors were encountered: