Closed SquidDev closed 10 months ago
If you have a record a byte (or short) field, TeaVM would generate a toString method which called the (non-existent) StringBuilder.append(B). We need to do similar logic to what StringBuilderEmitter does and convert byte/shorts to ints.
byte
short
toString
StringBuilder.append(B)
StringBuilderEmitter
int
Thank you!
If you have a record a
byte
(orshort
) field, TeaVM would generate atoString
method which called the (non-existent)StringBuilder.append(B)
. We need to do similar logic to whatStringBuilderEmitter
does and convert byte/shorts toint
s.