Skip to content

Commit 5cdb001

Browse files
committed
Drop no-longer-necessary guard to javaSig
1 parent c7e88c2 commit 5cdb001

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeHelpers.scala

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -847,19 +847,12 @@ trait BCodeHelpers extends BCodeIdiomatic with BytecodeWriters {
847847

848848
private def getGenericSignatureHelper(sym: Symbol, owner: Symbol, memberTpe: Type)(using Context): Option[String] = {
849849
if (needsGenericSignature(sym)) {
850-
val erasedTypeSym = TypeErasure.fullErasure(sym.denot.info).typeSymbol
851-
if (erasedTypeSym.isPrimitiveValueClass) {
852-
// Suppress signatures for symbols whose types erase in the end to primitive
853-
// value types. This is needed to fix #7416.
854-
None
855-
} else {
856-
val jsOpt = GenericSignatures.javaSig(sym, memberTpe)
857-
if (ctx.settings.XverifySignatures.value) {
858-
jsOpt.foreach(verifySignature(sym, _))
859-
}
860-
861-
jsOpt
850+
val jsOpt = GenericSignatures.javaSig(sym, memberTpe)
851+
if (ctx.settings.XverifySignatures.value) {
852+
jsOpt.foreach(verifySignature(sym, _))
862853
}
854+
855+
jsOpt
863856
} else {
864857
None
865858
}

0 commit comments

Comments
 (0)