diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-03-30 08:49:10 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-03-30 08:49:10 +0000 |
commit | b62a73e023b4dad90f1712c448fdf9f456b8ebcf (patch) | |
tree | f90c6c3184b300dcf677bdecd3ca4444e3a63e0d /src/library | |
parent | dea08d71fce6a519479a7c4da45d0d5a935e17f1 (diff) | |
download | scala-b62a73e023b4dad90f1712c448fdf9f456b8ebcf.tar.gz scala-b62a73e023b4dad90f1712c448fdf9f456b8ebcf.tar.bz2 scala-b62a73e023b4dad90f1712c448fdf9f456b8ebcf.zip |
Library part does not build unless on java 7 wi...
Library part does not build unless on java 7 with invokedynamic.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/runtime/DynamicDispatch.java-notyet (renamed from src/library/scala/runtime/DynamicDispatch.java) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/runtime/DynamicDispatch.java b/src/library/scala/runtime/DynamicDispatch.java-notyet index 80d45b05db..744ee79264 100644 --- a/src/library/scala/runtime/DynamicDispatch.java +++ b/src/library/scala/runtime/DynamicDispatch.java-notyet @@ -7,7 +7,7 @@ import java.dyn.MethodHandle; * This class resolves calls through refinement types. The * bootstrap method is called when an invokedynamic is found * by the Java VM. - * + * * Note: Requires Java 7 with invoke dynamic support (see JSR 292) * * @author Iulian Dragos @@ -19,20 +19,20 @@ public class DynamicDispatch { * Resolve an invoke dynamic in Scala code. invokedynamic calls appear * when a method defined by a refinement type is called. It is resolved * by looking up a method with the same name and types in the receiver - * object. It is guaranteed by the type checker that such a method + * object. It is guaranteed by the type checker that such a method * exists. * - * The current implementation is not correct, a call site being + * The current implementation is not correct, a call site being * always bootstrapped to a method handle. A bound call site should be * guarded by a test on the receiver type. Such code should either * be generated by the compiler, or by this bootstrap method using - * one of the code combinators provided in java.dyn.*. + * one of the code combinators provided in java.dyn.*. * * ATM, they are not yet available in the JVM. */ public static Object bootstrapInvokeDynamic(CallSite cs, Object... args) { println(cs); - + MethodHandle mh = MethodHandles.findVirtual(cs.callerClass(), cs.name(), cs.type()); |