Revision 47102

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureRules.java
48 48
import org.gvsig.json.JsonObjectBuilder;
49 49
import org.gvsig.json.SupportJson;
50 50
import org.gvsig.json.SupportToJson;
51
import org.gvsig.tools.dispose.DisposeUtils;
51 52
import org.gvsig.tools.dynobject.exception.DynFieldValidateException;
52 53
import org.gvsig.tools.persistence.PersistentState;
53 54
import org.gvsig.tools.persistence.exception.PersistenceException;
......
132 133

  
133 134
    private void checkRequireds(Feature feature) {
134 135
        for (FeatureAttributeDescriptor attr : feature.getType()) {
135
            if (attr.isAutomatic()) {
136
            if (attr.isAutomatic() || attr.isComputed()) {
136 137
                continue;
137 138
            }
138 139
            if (attr.isPrimaryKey() || !attr.allowNull()) {
......
164 165

  
165 166
    private void checkBasics(Feature feature) {
166 167
        for (FeatureAttributeDescriptor attr : feature.getType()) {
168
            if(attr.isComputed()){
169
                continue;
170
            }
167 171
            try {
168
                attr.validate(feature.get(attr.getName()));
172
                Object value = feature.get(attr.getName());
173
                attr.validate(value);
174
//                DisposeUtils.disposeQuietly(value);
169 175
            } catch (DynFieldValidateException ex) {
170 176
                String featstr = "unknown";
171 177
                try {

Also available in: Unified diff