#710 - Behavior change - query with invalid fetch path (without properties) now throws PersistenceException

This commit is contained in:
Robin Bygrave committed 2016-05-18 12:34:16 +12:00
1 parent 362ceea79b
commit 75a2633590
4 files changed
+33 -12

No files matched your search

@@ -1654,7 +1654,7 @@ public class BeanDescriptor<T> implements MetaBeanInfo, BeanType<T> {
return assocProp.getTargetDescriptor().getBeanDescriptor(splitBegin[1]);
} else {
throw new RuntimeException("Error getting BeanDescriptor for path " + path + " from " + getFullName());
throw new PersistenceException("Invalid path " + path + " from " + getFullName());
}
}