rzo1 commented on code in PR #144:
URL: https://github.com/apache/openjpa/pull/144#discussion_r3437879199
##########
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java:
##########
@@ -467,8 +467,16 @@ private void setInverseRelation(OpenJPAStateManager owner,
continue;
}
OpenJPAStateManager sm = (OpenJPAStateManager)
pc.pcGetStateManager();
- ClassMapping cm =
- (ClassMapping)
_conf.getMetaDataRepositoryInstance().getCachedMetaData(pc.getClass());
+ if (sm == null) {
Review Comment:
I would already have thrown ClassCastException at the (PersistenceCapable) o
cast on lineĀ 465 if there is broken enhancement, no?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]