Bug in Character.toString()

7 views
Skip to first unread message

Udo

unread,
Jul 26, 2016, 12:06:57 PM7/26/16
to Java2Script
It looks like the implementation of Character.toString  (in core.z.js) is buggy. 

Here the current code (pretty printed):

c$.toString = $_M(c$, "toString", function(c) {
    {
        if (this === Charater) {
            return "class java.lang.Charater";
        }
    }
    return String.valueOf(c);
}, "~S");



Look at the spelling of "Charater". It is missing the small "c": Character

This typo occurs twice, once as the reference to the class and in the string literal.


Udo


Reply all
Reply to author
Forward
0 new messages