Skip to content

Instantly share code, notes, and snippets.

@wololock
Created November 15, 2018 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wololock/6bf5b6b1252d3c797f574b0af183a93f to your computer and use it in GitHub Desktop.
Save wololock/6bf5b6b1252d3c797f574b0af183a93f to your computer and use it in GitHub Desktop.
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
import groovy.lang.Closure;
import groovy.lang.GroovyObject;
import groovy.lang.MetaClass;
import org.codehaus.groovy.runtime.GeneratedClosure;
public class WaitTest implements GroovyObject {
public WaitTest() {
MetaClass var1 = this.$getStaticMetaClass();
this.metaClass = var1;
}
public void testImplicitThisInsideClosure() {
class _testImplicitThisInsideClosure_closure1 extends Closure implements GeneratedClosure {
public _testImplicitThisInsideClosure_closure1(Object _thisObject) {
super(WaitTest.this, _thisObject);
}
public Object doCall(Object it) {
this.wait();
return null;
}
public Object call(Object args) {
return this.doCall(args);
}
public Object call() {
return this.doCall((Object)null);
}
public Object doCall() {
return this.doCall((Object)null);
}
}
Closure closure = new _testImplicitThisInsideClosure_closure1(this);
synchronized(this) {
closure.call();
}
}
public static void main(String... args) {
(new WaitTest()).testImplicitThisInsideClosure();
Object var10000 = null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment