OPENJPA-926 Localize exception message

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeremy Bauer 2009-05-26 20:24:43 +00:00
parent b3ab297d62
commit a4a9dc1787
2 changed files with 6 additions and 2 deletions

View File

@ -209,8 +209,10 @@ public class AccessCode {
if (fCode == cCode)
return cCode;
else
throw new IllegalStateException("Can not merge field " +
toFieldString(fCode) + " to class " + toClassString(cCode));
throw new IllegalStateException(
(_loc.get("access-cannot-merge",
toFieldString(fCode),
toClassString(cCode)).toString()));
}
}
return cCode;

View File

@ -25,6 +25,8 @@ access-inconsistent-inherit: "{1}" for class "{0}" is not consistent with \
based access style or explicitly declare an access style.
access-illegal-merge: Field "{0}" with "{1}" is not compatible with "{2}" \
used by its declaring class.
access-cannot-merge: Cannot merge field access "{0}" with class \
access "{1}".
meta-reflect: Using reflection for metadata generation.
gen-meta: Generating default metadata for type "{0}".
load-cls: Loading metadata for "{0}" under mode "{1}".