You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Edson Carlos Ericksson Richter <ed...@mgrinformatica.com.br> on 2004/03/08 14:55:43 UTC

OJB rc5 don't call toString in the object when using Proxies

Hi!

I'm asking you to remove the feature that make OJB doesn't materialize a object when calling toString (IndirectionHandler, method invoke):

            // handle toString differently for non-materialized proxies
            // to avoid materialization due to logging.
            if ((realSubject == null) && "toString".equals(methodName))
            {
                return "unmaterialized proxy for " + id;
            }


The reason for this is because any project using Swing components depends on toString to fill combo-boxes and lists. At other side, I don't see high gains of performence doing this (except when using higher levels of debugging).

Thanks,

Edson Richter


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 5/3/2004