View Single Post
  #1 (permalink)  
Old 08-07-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
Issue with Icecs 3.3.0

Hello,

It seems that Dictionaries are not well generated with ice 3.3.0.

See what I got :

Code:
public static _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> read(IceInternal.BasicStream is__)
        {
            int sz__ = is__.readSize();
            _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> r__ = new _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress>();
            for(int i__ = 0; i__ < sz__; ++i__)
            {
                castor.UnderlyingCrossCorrelationKey k__;
                v__ = new castor.UnderlyingCrossCorrelationKey();
                k__.read__(is__);
                is__.readObject(new Patcher__("::castor::CorrelationStress", r__, k__));
            }
            return r__;
        }
"v__" is not declared and I have the same behaviour with all my dictionaries. I thik "k__" should replace it.

See another example :

Code:
public static _System.Collections.Generic.Dictionary<castor.CrossKey, double> read(IceInternal.BasicStream is__)
        {
            int sz__ = is__.readSize();
            _System.Collections.Generic.Dictionary<castor.CrossKey, double> r__ = new _System.Collections.Generic.Dictionary<castor.CrossKey, double>();
            for(int i__ = 0; i__ < sz__; ++i__)
            {
                castor.CrossKey k__;
                v__ = new castor.CrossKey();
                k__.read__(is__);
                double v__;
                v__ = is__.readDouble();
                r__[k__] = v__;
            }
            return r__;
        }
This time, another variable "v__" is declared and used after...
Reply With Quote