In the Rhino JavaScript engine, how can a custom Java object be an instance of final class java.lang.String?
UPDATE: Based on various feedback, I'm significantly updating my question so much so that it is different from (though still related to) the original one. I don't know what the proper protocol is for this on StackOverflow, so I'm sorry…