(file) Return to CIMPropertyRep.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMPropertyRep.cpp between version 1.37 and 1.38

version 1.37, 2002/08/21 00:15:44 version 1.38, 2002/09/11 21:20:24
Line 53 
Line 53 
     _propagated(propagated)     _propagated(propagated)
 { {
     if (arraySize && (!value.isArray() || value.getArraySize() != arraySize))     if (arraySize && (!value.isArray() || value.getArraySize() != arraySize))
                 throw IncompatibleTypesException();          throw TypeMismatchException();
  
     // If referenceClassName exists, must be legal namd and CIMType REFERENCE.      // If referenceClassName exists, must be CIMType REFERENCE.
     if (!referenceClassName.isNull())     if (!referenceClassName.isNull())
     {     {
         if (_value.getType() != CIMTYPE_REFERENCE)         if (_value.getType() != CIMTYPE_REFERENCE)
             throw ExpectedReferenceValueException();              throw TypeMismatchException();
     }     }
     else     else
     {     {
         if (_value.getType() == CIMTYPE_REFERENCE)         if (_value.getType() == CIMTYPE_REFERENCE)
             throw MissingReferenceClassNameException();              throw TypeMismatchException();
     }     }
 } }
  
Line 328 
Line 328 
     // CIMType of value is immutable:     // CIMType of value is immutable:
  
     if (!value.typeCompatible(_value))     if (!value.typeCompatible(_value))
         throw IncompatibleTypesException();          throw TypeMismatchException();
  
     if (_arraySize && _arraySize != value.getArraySize())     if (_arraySize && _arraySize != value.getArraySize())
         throw IncompatibleTypesException();          throw TypeMismatchException();
  
     _value = value;     _value = value;
 } }


Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2