summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-03-25 20:18:15 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-03-25 20:18:15 +0100
commitc34826d1ca183a29f73eb056f69c59a50091ec4d (patch)
treef6a5c80dc44a7f189bc062fc67d1bc0e9d4a720b /src
parentc765537cb3532a7b88f1b68331840953f3e9d048 (diff)
parent932626471f90c038511647400518d8c32607315b (diff)
downloadscala-c34826d1ca183a29f73eb056f69c59a50091ec4d.tar.gz
scala-c34826d1ca183a29f73eb056f69c59a50091ec4d.tar.bz2
scala-c34826d1ca183a29f73eb056f69c59a50091ec4d.zip
Merge pull request #3651 from xeno-by/ticket/8437
SI-8437 macro runtime now also picks inherited macro implementations
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/reflect/macros/runtime/JavaReflectionRuntimes.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/macros/runtime/JavaReflectionRuntimes.scala b/src/compiler/scala/reflect/macros/runtime/JavaReflectionRuntimes.scala
index ecdd48db22..be114efbc0 100644
--- a/src/compiler/scala/reflect/macros/runtime/JavaReflectionRuntimes.scala
+++ b/src/compiler/scala/reflect/macros/runtime/JavaReflectionRuntimes.scala
@@ -14,7 +14,7 @@ trait JavaReflectionRuntimes {
def resolveJavaReflectionRuntime(classLoader: ClassLoader): MacroRuntime = {
val implClass = Class.forName(className, true, classLoader)
- val implMeths = implClass.getDeclaredMethods.find(_.getName == methName)
+ val implMeths = implClass.getMethods.find(_.getName == methName)
// relies on the fact that macro impls cannot be overloaded
// so every methName can resolve to at maximum one method
val implMeth = implMeths getOrElse { throw new NoSuchMethodException(s"$className.$methName") }