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

BUG: Compile Error - Gradle task: compileRetroLambdaDebug (reproducible) #249

Open
smp4903 opened this issue May 2, 2017 · 0 comments
Open

Comments

@smp4903
Copy link

smp4903 commented May 2, 2017

Using lambda expressions with the Handler to post a Runnable inside an AjaxCallback produces a compile error. However, using the regular anonymous class works fine AND using the lambda expression outside of the callback also works.

The produced error is:

Error:Execution failed for task ':app:compileRetrolambdaDebug'.

Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

The error seems to be produced by the interaction between RetroLambda and AndroidQuery.

Sample project to reproduce

Simply try to compile the project.

The specific code that triggers the bug:

    new Handler().post(() -> { });         // works

    AjaxCallback<Bitmap> callback = new AjaxCallback<Bitmap>() {
        @Override
        public void callback(String url, final Bitmap bitmap, AjaxStatus status) {

            new Handler().post(() -> { });        // does NOT work

            new Handler().post(new Runnable() {     // works
                @Override
                public void run() {

                }
            });
        }
    };
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