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

JSR/RET are not supported with computeFrames option. #58

evdjo opened this Issue Sep 5, 2014 · 1 comment


2 participants

evdjo commented Sep 5, 2014

Hi there,
I am getting the following exception.

java.lang.RuntimeException: JSR/RET are not supported with computeFrames option...

I have isolated the problem, and it appears to be that I am getting the error because I mock a Logger class.

The logger comes from the Apache log4j library, version 1.2.12.
JDK 1.7.0_52 32 bit
Win7 64 bit

I suspect that the reason for this failure is because of the ASM upgrade in the new JMockit 1.11.

The issue occurs when I use JMockit 1.11. But using JMockit 1.10 works just fine.

import mockit.Mocked;
import mockit.integration.junit4.JMockit;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
    public class Foo {

    @Mocked Logger logger;
    @Test public void test(){



@rliesenfeld rliesenfeld self-assigned this Sep 5, 2014

@rliesenfeld rliesenfeld added the bug label Sep 5, 2014


This comment has been minimized.

Show comment
Hide comment

rliesenfeld Sep 5, 2014


Fixed for version 1.12.


rliesenfeld commented Sep 5, 2014

Fixed for version 1.12.

@rliesenfeld rliesenfeld closed this Sep 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment