Author: jonesde
Date: Thu Oct 19 06:35:58 2006
New Revision: 465622
URL:
http://svn.apache.org/viewvc?view=rev&rev=465622Log:
Made change similar to that suggested by Ray Barlow in ASF Jira #OFBIZ-387, just used a more direct way of getting and displaying the entity name and field name
Modified:
incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java
Modified: incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java?view=diff&rev=465622&r1=465621&r2=465622==============================================================================
--- incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java (original)
+++ incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java Thu Oct 19 06:35:58 2006
@@ -378,7 +378,7 @@
} else if (value != null) {
// make sure the type matches the field Java type
if (!ObjectType.instanceOf(value, type.getJavaType())) {
- String errMsg = "In entity field set the value passed in [" + value.getClass().getName() + "] is not compatible with the Java type of the field [" + type.getJavaType() + "]";
+ String errMsg = "In entity field [" + this.getEntityName() + "." + name + "] set the value passed in [" + value.getClass().getName() + "] is not compatible with the Java type of the field [" + type.getJavaType() + "]";
// eventually we should do this, but for now we'll do a "soft" failure: throw new IllegalArgumentException(errMsg);
Debug.logWarning(errMsg, module);
}