Author: michiel Date: 2010-05-25 11:48:24 +0200 (Tue, 25 May 2010) New Revision: 42252
Modified: mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/core/AbstractField.java Log: if type was still unknonw, but datatype now set, determin type then too Modified: mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/core/AbstractField.java =================================================================== --- mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/core/AbstractField.java 2010-05-25 08:49:06 UTC (rev 42251) +++ mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/core/AbstractField.java 2010-05-25 09:48:24 UTC (rev 42252) @@ -141,6 +141,10 @@ */ public void setDataType(DataType<D> dataType) throws IllegalArgumentException { int dataTypeType = dataType.getBaseType(); + if (type == TYPE_UNKNOWN) { + log.debug("Type was yet unknown, now set to " + dataType); + type = dataTypeType; + } if (dataTypeType != type) { log.debug("DataType (" + dataType.getBaseTypeIdentifier() + ") is different from db type (" + Fields.getTypeDescription(type) + ")."); } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs