mirror of https://github.com/apache/openjpa.git
Improve the error message when failing to find a field in a given identification variable's type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f67ace749a
commit
86e17fc210
|
@ -1315,7 +1315,7 @@ public class JPQLExpressionBuilder
|
|||
return factory.newLiteral(value, Literal.TYPE_UNKNOWN);
|
||||
} catch (NoSuchFieldException nsfe) {
|
||||
throw parseException(EX_USER, "no-field",
|
||||
new Object[]{ className, fieldName }, nsfe);
|
||||
new Object[]{ c.getName(), fieldName }, nsfe);
|
||||
} catch (Exception e) {
|
||||
throw parseException(EX_USER, "unaccessible-field",
|
||||
new Object[]{ className, fieldName }, e);
|
||||
|
|
Loading…
Reference in New Issue