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
2222 val parentSymbols = tree.parents.tail.map(_.asInstanceOf [TypeTree ].symbol).head
2323 import java .lang .reflect ._
2424 val handler : InvocationHandler = new InvocationHandler () {
25-
2625 def invoke (proxy : Object , method : Method , args : scala.Array [Object ]): Object = {
2726 if (LOG ) {
2827 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
4140 method.invoke(this , args : _* )
4241 }
4342 }
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);
4746 }
4847 }
4948 else jvmReflection.interpretNew(fn.symbol, evaluatedArgss(argss))
You can’t perform that action at this time.
0 commit comments