Bug? Error compiling of the log of a byte array

alwaysbusy

Expert
Licensed User
Longtime User
B4J 10.0 Final version

B4X:
Dim bytes() As Byte
log(bytes) ' <-- error

Error:
B4X:
Log(bytes)
src\b4j\example\main.java:241: error: no suitable method found for NumberToString(byte[])
anywheresoftware.b4a.keywords.Common.LogImpl("7196672",BA.NumberToString(_bytes),0);
                                                         ^
    method BA.NumberToString(double) is not applicable
      (argument mismatch; byte[] cannot be converted to double)
    method BA.NumberToString(float) is not applicable
      (argument mismatch; byte[] cannot be converted to float)
    method BA.NumberToString(int) is not applicable
      (argument mismatch; byte[] cannot be converted to int)
    method BA.NumberToString(long) is not applicable
      (argument mismatch; byte[] cannot be converted to long)
    method BA.NumberToString(Number) is not applicable
      (argument mismatch; byte[] cannot be converted to Number)
1 error

The weird part is, when you run in debug mode and then add the log(bytes) line and save. it just works fine so I guess B4J is capable of doing it.
 
Top