Skip to content
This repository
Browse code

Fix JSON reflection issue for Scala 2.8.2

  • Loading branch information...
commit dff0b6a1baa746cc3e60bd8805f71c4fbea0e290 1 parent 9a1be04
Joni Freeman authored
8 core/json/src/main/scala/net/liftweb/json/ScalaSig.scala
@@ -83,7 +83,13 @@ private[json] object ScalaSigReader {
83 83 case NullaryMethodType(TypeRefType(_, _, args)) => args(typeArgIdx)
84 84 }
85 85 */
86   - val t = s.infoType.asInstanceOf[{ def resultType: Type }].resultType match {
  86 + def resultType = try {
  87 + s.infoType.asInstanceOf[{ def resultType: Type }].resultType
  88 + } catch {
  89 + case e: java.lang.NoSuchMethodException => s.infoType.asInstanceOf[{ def typeRef: Type }].typeRef
  90 + }
  91 +
  92 + val t = resultType match {
87 93 case TypeRefType(_, _, args) => args(typeArgIdx)
88 94 }
89 95

0 comments on commit dff0b6a

Please sign in to comment.
Something went wrong with that request. Please try again.