You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by to...@apache.org on 2004/03/24 12:55:58 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata ClassDescriptor.java
tomdz 2004/03/24 03:55:58
Modified: src/java/org/apache/ojb/broker/metadata ClassDescriptor.java
Log:
Fixed bug where a non-public factory-method was looked-up in the object's class instead of the factory class
Revision Changes Path
1.82 +3 -3 db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java
Index: ClassDescriptor.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- ClassDescriptor.java 15 Mar 2004 00:32:20 -0000 1.81
+++ ClassDescriptor.java 24 Mar 2004 11:55:58 -0000 1.82
@@ -1938,7 +1938,7 @@
try
{
// no publicly accessible method, see if there is a private/protected one
- newMethod = getClassOfObject().getDeclaredMethod(factoryMethodName, NO_PARAMS);
+ newMethod = getFactoryClass().getDeclaredMethod(factoryMethodName, NO_PARAMS);
}
catch (NoSuchMethodException e2)
{
@@ -1948,7 +1948,7 @@
+ " a zero argument method named "
+ factoryMethodName
+ " on class "
- + getClassOfObject().getName()
+ + getFactoryClass().getName()
+ ".");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org