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:
Patrick Linskey 2008-03-04 22:05:51 +00:00
parent f67ace749a
commit 86e17fc210
1 changed files with 1 additions and 1 deletions

View File

@ -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);