mirror of https://github.com/apache/openjpa.git
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:
parent
18c90bbd0b
commit
012efc034c
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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}.
|
Loading…
Reference in New Issue