/** * Returns the runtime class of an object. That <tt>Class</tt> object is the object that is locked * by <tt>static synchronized</tt> methods of the represented class. * * @return the object of type <code>Class</code> that represents the runtime class of the object. */ public final Class getClass() { Klass klass = GC.getKlass(this); if (klass == Klass.STRING_OF_BYTES) { klass = Klass.STRING; } return Klass.asClass(klass); }