summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Iry <james.iry@typesafe.com>2013-03-25 07:16:22 -0700
committerJames Iry <james.iry@typesafe.com>2013-03-25 07:16:22 -0700
commitb7cbda78e8e280ac1354a017890cdfd8a9b77290 (patch)
treec8422be362cc4539c7ee0008c8fec4f48a063cb6
parente78896f0ab7240e9bdcd98c51cbf6bc0ea277950 (diff)
downloadscala-b7cbda78e8e280ac1354a017890cdfd8a9b77290.tar.gz
scala-b7cbda78e8e280ac1354a017890cdfd8a9b77290.tar.bz2
scala-b7cbda78e8e280ac1354a017890cdfd8a9b77290.zip
Log when invokedynamic instruction is encountered
Based on the review of https://github.com/scala/scala/pull/2257, this commit adds a debuglog when an invokedynamic instruction is found during class file parsing as a reminder that the implementation is just a place holder.
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala
index d38907d182..c304c18c4f 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala
@@ -508,6 +508,7 @@ abstract class ICodeReader extends ClassfileParser {
code.emit(CALL_METHOD(m, Static(false)))
case JVM.invokedynamic =>
// TODO, this is just a place holder. A real implementation must parse the class constant entry
+ debuglog("Found JVM invokedynamic instructionm, inserting place holder ICode INVOKE_DYNAMIC.")
containsInvokeDynamic = true
val poolEntry = in.nextChar
in.skip(2)