Created
November 15, 2018 10:56
-
-
Save wololock/6bf5b6b1252d3c797f574b0af183a93f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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