@@ -401,7 +401,7 @@ trait UnpicklerMacros extends Macro with UnpickleMacros {
401
401
import scala.pickling._
402
402
import scala.pickling.ir._
403
403
import scala.pickling.internal._
404
- def unpickle(tag: => FastTypeTag[_], reader: PReader): Any = $unpickleLogic
404
+ def unpickle(tag: => scala.pickling. FastTypeTag[_], reader: scala.pickling. PReader): Any = $unpickleLogic
405
405
}
406
406
$unpicklerName
407
407
"""
@@ -562,10 +562,10 @@ trait PickleMacros extends Macro {
562
562
import scala.language.existentials
563
563
import scala.pickling._
564
564
import scala.pickling.internal._
565
- val picklee = $picklee
566
- GRL.lock()
565
+ val picklee: $tpe = $picklee
566
+ scala.pickling.internal. GRL.lock()
567
567
$picklingLogic
568
- GRL.unlock()
568
+ scala.pickling.internal. GRL.unlock()
569
569
"""
570
570
}
571
571
}
@@ -628,12 +628,12 @@ trait UnpickleMacros extends Macro {
628
628
})
629
629
val runtimeDispatch = CaseDef (Ident (nme.WILDCARD ), EmptyTree , q """
630
630
val tag = scala.pickling.FastTypeTag(typeString)
631
- Unpickler.genUnpickler( $readerName.mirror, tag)
631
+ scala.pickling. Unpickler.genUnpickler( $readerName.mirror, tag)
632
632
""" )
633
633
634
634
q """
635
- val customUnpickler = implicitly[Unpickler[ $tpe]]
636
- if (customUnpickler.isInstanceOf[PicklerUnpicklerNotFound[_]] || customUnpickler.isInstanceOf[Generated]) {
635
+ val customUnpickler = implicitly[scala.pickling. Unpickler[ $tpe]]
636
+ if (customUnpickler.isInstanceOf[scala.pickling. PicklerUnpicklerNotFound[_]] || customUnpickler.isInstanceOf[scala.pickling. Generated]) {
637
637
${Match (q " typeString " , compileTimeDispatch :+ refDispatch :+ runtimeDispatch)}
638
638
} else {
639
639
${Match (q " typeString " , List (refDispatch) :+ customDispatch)}
@@ -643,7 +643,7 @@ trait UnpickleMacros extends Macro {
643
643
644
644
def abstractTypeDispatch =
645
645
q """
646
- val customUnpickler = implicitly[Unpickler[ $tpe]]
646
+ val customUnpickler = implicitly[scala.pickling. Unpickler[ $tpe]]
647
647
${Match (q " typeString " , List (refDispatch) :+ customDispatch)}
648
648
"""
649
649
@@ -655,15 +655,15 @@ trait UnpickleMacros extends Macro {
655
655
val unpickleeCleanup = if (isTopLevel && shouldBotherAboutCleaning(tpe)) q " clearUnpicklees() " else q " "
656
656
657
657
q """
658
- GRL.lock()
658
+ scala.pickling.internal. GRL.lock()
659
659
$readerName.hintTag(implicitly[scala.pickling.FastTypeTag[ $tpe]])
660
660
$staticHint
661
661
val typeString = $readerName.beginEntryNoTag()
662
662
val unpickler = $dispatchLogic
663
663
val result = unpickler.unpickle({ scala.pickling.FastTypeTag(typeString) }, $readerName)
664
664
$readerName.endEntry()
665
665
$unpickleeCleanup
666
- GRL.unlock()
666
+ scala.pickling.internal. GRL.unlock()
667
667
result.asInstanceOf[ $tpe]
668
668
"""
669
669
}
0 commit comments