File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/run-with-compiler-custom-args/tasty-interpreter/interpreter/jvm Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ class Interpreter[R <: Reflection & Singleton](reflect0: R) extends TreeInterpre
22
22
val parentSymbols = tree.parents.tail.map(_.asInstanceOf [TypeTree ].symbol).head
23
23
import java .lang .reflect ._
24
24
val handler : InvocationHandler = new InvocationHandler () {
25
-
26
25
def invoke (proxy : Object , method : Method , args : scala.Array [Object ]): Object = {
27
26
if (LOG ) {
28
27
val proxyString = if (method.getName == " toString" ) method.invoke(this ) else proxy.toString
@@ -41,9 +40,9 @@ class Interpreter[R <: Reflection & Singleton](reflect0: R) extends TreeInterpre
41
40
method.invoke(this , args : _* )
42
41
}
43
42
}
44
- }
45
- val proxyClass : Class [_] = Proxy .getProxyClass(getClass.getClassLoader, jvmReflection.loadClass(parentSymbols.fullName))
46
- proxyClass.getConstructor(classOf [InvocationHandler ]).newInstance(handler);
43
+ }
44
+ val proxyClass : Class [_] = Proxy .getProxyClass(getClass.getClassLoader, jvmReflection.loadClass(parentSymbols.fullName))
45
+ proxyClass.getConstructor(classOf [InvocationHandler ]).newInstance(handler);
47
46
}
48
47
}
49
48
else jvmReflection.interpretNew(fn.symbol, evaluatedArgss(argss))
You can’t perform that action at this time.
0 commit comments