Skip to content

Commit

Permalink
BLC-871 - FieldManager.getField() does not look at the right class so…
Browse files Browse the repository at this point in the history
…metimes.

(cherry picked from commit ec3f286)
  • Loading branch information
Jerry77oz authored and phillipuniverse committed Jun 13, 2013
1 parent 1b7f37f commit 2b41c6e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -87,8 +87,8 @@ public Field getField(Class<?> clazz, String fieldName) throws IllegalStateExcep
if (matchedClasses.size() > 1) {
LOG.warn("Found the property (" + peekAheadToken + ") in more than one class of an inheritance hierarchy. This may lead to unwanted behavior, as the system does not know which class was intended. Do not use the same property name in different levels of the inheritance hierarchy. Defaulting to the first class found (" + matchedClasses.get(0).getName() + ")");
}
if (getSingleField(entities[0], peekAheadToken) != null) {
Class<?> matchedClass = entities[0];
if (getSingleField(matchedClasses.get(0), peekAheadToken) != null) {
Class<?> matchedClass = matchedClasses.get(0);
PersistentClass persistentClass = dynamicEntityDao.getPersistentClass(matchedClass.getName());
if (persistentClass != null && matchedClasses.size() == 1) {
Class<?> entityClass;
Expand Down

1 comment on commit 2b41c6e

@phillipuniverse
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in response to #57

Please sign in to comment.