Forget: was my mistake (I have created an conversion class and apllyed to
the PK: result is unpredictable, very unstable!!!).
Best regards,
Edson Richter
----- Original Message -----
From: Edson Carlos Ericksson Richter
To: 'OJB Users List'
Sent: Monday, October 13, 2003 11:17 AM
Subject: Proxies and toString
Hi!
I've observed a weird behaviour in my app since my last update to CVS
Head... Searching source code I've found the following piece of code:
try
{
subject = getRealSubject();
// handle toString differently for non-materialized proxies
// to avoid materialization due to logging.
if ((realSubject == null) &&
(TO_STRING_METHODNAME.equals(method.getName())))
{
String msg = "unmaterialized proxy for " + getIdentity();
return msg;
}
else
{
Method m = subject.getClass().getMethod(method.getName(),
method.getParameterTypes());
return m.invoke(subject, args);
}
}
catch (Exception e)
Since all my JList and JComboBox depends on toString method, I'm getting
always a "unmaterialized proxy for" instead my toString result of my own
objects. Can someone tell me if this can be corrected, or I'll need to fix
this in my own copy?
Thanks,
Edson Richter
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 9/10/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]