OPENJPA-147. Changes resulting from tests via Kodo's harness.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-02-05 04:34:54 +00:00
parent 18c90bbd0b
commit 012efc034c
4 changed files with 11 additions and 1 deletions

View File

@ -4160,6 +4160,12 @@ public class BrokerImpl
} catch (Throwable t) {
}
}
if (_conf.getMetaDataRepositoryInstance().getMetaData(cls,
getClassLoader(), false) == null)
throw new IllegalArgumentException(
_loc.get("no-interface-metadata", cls.getName()).getMessage());
try {
return PCRegistry.newInstance(cls, null, false);
} catch (IllegalStateException ise) {

View File

@ -269,7 +269,7 @@ public abstract class AbstractMetaDataDefaults
* Returns ACCESS_FIELD by default.
*/
protected int getAccessType(ClassMetaData meta) {
return ClassMetaData.ACCESS_FIELD;
return ClassMetaData.ACCESS_FIELD;
}
/**

View File

@ -737,6 +737,9 @@ public class ClassMetaData
// the implementations.
if (isManagedInterface())
setIntercepting(true);
// managed interfaces always use property access.
setAccessType(ACCESS_PROPERTY);
}
/**

View File

@ -396,3 +396,4 @@ cant-serialize-pessimistic-broker: Serialization not allowed for brokers with \
an active datastore (pessimistic) transaction.
cant-serialize-connected-broker: Serialization not allowed for brokers with \
an active connection to the database.
no-interface-metadata: No metadata was found for managed interface {0}.