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) { } catch (Throwable t) {
} }
} }
if (_conf.getMetaDataRepositoryInstance().getMetaData(cls,
getClassLoader(), false) == null)
throw new IllegalArgumentException(
_loc.get("no-interface-metadata", cls.getName()).getMessage());
try { try {
return PCRegistry.newInstance(cls, null, false); return PCRegistry.newInstance(cls, null, false);
} catch (IllegalStateException ise) { } catch (IllegalStateException ise) {

View File

@ -737,6 +737,9 @@ public class ClassMetaData
// the implementations. // the implementations.
if (isManagedInterface()) if (isManagedInterface())
setIntercepting(true); 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. an active datastore (pessimistic) transaction.
cant-serialize-connected-broker: Serialization not allowed for brokers with \ cant-serialize-connected-broker: Serialization not allowed for brokers with \
an active connection to the database. an active connection to the database.
no-interface-metadata: No metadata was found for managed interface {0}.