@@ -768,11 +768,11 @@ object Erasure {
768
768
)
769
769
}
770
770
771
- final def javaSig (sym0 : Symbol , info : Type , markClassUsed : Symbol => Unit )(implicit ctx : Context ): Option [String ] =
772
- ctx.atPhase(ctx.erasurePhase) { implicit ctx => javaSig0(sym0, info, markClassUsed ) }
771
+ final def javaSig (sym0 : Symbol , info : Type )(implicit ctx : Context ): Option [String ] =
772
+ ctx.atPhase(ctx.erasurePhase) { implicit ctx => javaSig0(sym0, info) }
773
773
774
774
@ noinline
775
- private final def javaSig0 (sym0 : Symbol , info : Type , markClassUsed : Symbol => Unit )(implicit ctx : Context ): Option [String ] = {
775
+ private final def javaSig0 (sym0 : Symbol , info : Type )(implicit ctx : Context ): Option [String ] = {
776
776
val builder = new StringBuilder (64 )
777
777
val isTraitSignature = sym0.enclosingClass.is(Flags .Trait )
778
778
@@ -860,7 +860,7 @@ object Erasure {
860
860
}
861
861
862
862
@ noinline
863
- def jsig (tp0 : Type , existentiallyBound : List [ Symbol ] = Nil , toplevel : Boolean = false , primitiveOK : Boolean = true ): Unit = {
863
+ def jsig (tp0 : Type , toplevel : Boolean = false , primitiveOK : Boolean = true ): Unit = {
864
864
865
865
val tp = tp0.dealias
866
866
tp match {
@@ -890,11 +890,10 @@ object Erasure {
890
890
boxedSig(tp)
891
891
}
892
892
def classSig : Unit = {
893
- markClassUsed(sym)
894
893
val preRebound = pre.baseType(sym.owner) // #2585
895
894
if (needsJavaSig(preRebound, Nil )) {
896
895
val i = builder.length()
897
- jsig(preRebound, existentiallyBound )
896
+ jsig(preRebound)
898
897
if (builder.charAt(i) == 'L' ) {
899
898
builder.delete(builder.length() - 1 , builder.length())// delete ';'
900
899
// If the prefix is a module, drop the '$'. Classes (or modules) nested in modules
@@ -952,14 +951,14 @@ object Erasure {
952
951
if (unboxedSeen.isPrimitiveValueType && ! primitiveOK)
953
952
classSig
954
953
else
955
- jsig(unboxedSeen, existentiallyBound, toplevel, primitiveOK)
954
+ jsig(unboxedSeen, toplevel, primitiveOK)
956
955
}
957
956
else if (tp.isPhantom)
958
957
jsig(defn.ErasedPhantomType )
959
958
else if (sym.isClass)
960
959
classSig
961
960
else
962
- jsig(erasure(tp), existentiallyBound, toplevel, primitiveOK)
961
+ jsig(erasure(tp), toplevel, primitiveOK)
963
962
964
963
case ExprType (restpe) if toplevel =>
965
964
builder.append(" ()" )
@@ -1010,7 +1009,7 @@ object Erasure {
1010
1009
superSig(ci.typeSymbol, ci.parents)
1011
1010
1012
1011
case AnnotatedType (atp, _) =>
1013
- jsig(atp, existentiallyBound, toplevel, primitiveOK)
1012
+ jsig(atp, toplevel, primitiveOK)
1014
1013
1015
1014
case hktl : HKTypeLambda =>
1016
1015
jsig(hktl.finalResultType)
0 commit comments