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